Exercise

Setting chunk options globally

Now that your plots are ready to include in your report, you can modify how they appear once the file is knit. Previously, you learned the difference between setting options globally and setting them locally. In this exercise, you'll set options for the figures globally, which means the options will apply to all figures throughout the code chunks in the report.

Instructions

100 XP
  • Add to the setup chunk at the top of the report to align all figures in the center of the report.
  • Add another option to the setup chunk so that the output width of all figures are 80%.