Ein Standard-Theme anwenden
Wie du in den Videos gelernt hast, bringt ggplot2 eine Reihe vordefinierter Themes mit. Probier ein paar davon aus!
Diese Übung ist Teil des Kurses
<Kurs>Kommunizieren mit Daten im Tidyverse</Kurs>Interaktive praktische Übung
Versuche dich an dieser Übung, indem du diesen Beispielcode vervollständigst.
# 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