Zastosuj domyślny motyw
Jak pokazano w filmach, ggplot2 oferuje zestaw predefiniowanych motywów. Wypróbuj kilka z nich!
To ćwiczenie jest częścią kursu
Komunikacja danych w Tidyverse
Interaktywne ćwiczenie praktyczne
Spróbuj tego ćwiczenia, uzupełniając ten przykładowy kod.
# 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