始める無料で始める

デフォルトテーマの適用

動画で学んだように、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
コードを編集して実行