Aplică o temă implicită
Așa cum ai învățat în videoclipuri, ggplot2 vine cu un set de teme predefinite. Încearcă câteva dintre ele!
Acest exercițiu face parte din cursul
Comunicarea cu date în Tidyverse
Exercițiu interactiv practic
Încearcă acest exercițiu completând acest cod de exemplu.
# 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