Kickstart 2020 with new opportunities! - hours only!Up to 80% off on all courses and bundles.-Close
Visualize your data - line chart
10. Change the aspect ratio
Check yourself

## Instruction

Be careful with the aspect ratio of line charts.

Let's play with the aspect ratio of our chart. Try ratio values of 2, 0.5, and 0.1 and assess which will be the best according to the rule we just discussed.

To do that in R, add theme(aspect.ratio=your_number) to your plot, replacing your_number with the desired ratio value.

## Exercise

theme(aspect.ratio=your_number)
to the line chart. Try the above three values. Which one is best?

### Stuck? Here's a hint!

The best aspect ratio would be as follows:

theme(aspect.ratio = 0.5)