Een standaardthema toepassen
Zoals je in de video's hebt geleerd, wordt ggplot2 geleverd met een set vooraf gedefinieerde thema's. Probeer er een paar uit!
Deze oefening maakt deel uit van de cursus
Communiceren met data in de Tidyverse
Praktische interactieve oefening
Probeer deze oefening eens door deze voorbeeldcode in te vullen.
# 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