Chapter 8. Briefing the Emperor

You revisited and reorganized a complete data analysis in Chapter 7 to prepare your strategy for presentation. The next step towards executing your plans for the Shu forces is to visit the emperor and propose your strategy. The emperor is unconcerned with the minute details of the attack, but rather needs to be convinced that your proposed attack is a sound one that will be beneficial for the Shu kingdom. It is important to convey your plans with clarity, because the emperor has the power accept or reject your strategy.

To provide the emperor with the clear and concise information that he needs, we will focus on R's graphical features. We will convey our strategy through the use of several charts, graphs, and plots. We will also explore our options for customizing these visuals. Through the use of R's rich graphical features, we make the benefits of our combat strategy readily apparent and win the support of the emperor. By the end of this chapter, you will be able to:

  • Create six different charts, graphs, and plots in R
  • Customize your R visuals using text, colors, axes, and legends
  • Save and export your graphics for use outside of R

Charts, graphs, and plots in R

R features several options for creating charts, graphs, and plots. In this chapter, we will explore the generation and customization of these visuals, as well as methods for saving and exporting them for use outside of R. The following visuals will be covered in this chapter:

  • Bar graphs
  • Scatterplots
  • Line charts
  • Box plots
  • Histograms
  • Pie charts

For demonstration purposes, all of our visuals will communicate information about the fire attack strategy that was used in Chapter 7. This strategy entailed deploying 2,500 Shu soldiers for 7 days to execute a fire attack 225 miles away on 10,000 Wei soldiers in And. If desired, you are encouraged to substitute your own battle plans into any or all activities for this chapter.

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset