開始使用免費開始

套用預設主題

就像你在影片中學到的,ggplot2 內建多種預先定義的主題。試著玩玩看吧!

本練習屬於課程

在 Tidyverse 中以資料溝通

檢視課程

動手互動練習

試著完成這個範例程式碼,體驗一下這個練習。

# 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
編輯並執行程式碼