CommencerCommencer gratuitement

Apply a default theme

As you've learnt in the videos, ggplot2 comes with a set of predefined themes. Try out some of them!

Cet exercice fait partie du cours

Communicating with Data in the Tidyverse

Afficher le cours

Exercice interactif pratique

Essayez cet exercice en complétant cet exemple de code.

# Save your current plot into a variable: ilo_plot
___ <- ggplot(plot_data) +
  geom_point(aes(x = working_hours, y = hourly_compensation)) +
  labs(
    x = "Working hours per week",
    y = "Hourly compensation",
    title = "The more people work, the less compensation they seem to receive",
    subtitle = "Working hours and hourly compensation in European countries, 2006",
    caption = "Data source: ILO, 2017"
  )

# View it
ilo_plot
Modifier et exécuter le code