MulaiMulai sekarang secara gratis

Menerapkan tema bawaan

Seperti yang Anda pelajari di video, ggplot2 menyertakan sejumlah tema yang sudah ditentukan. Cobalah beberapa di antaranya!

Latihan ini adalah bagian dari kursus

Berkomunikasi dengan Data di Tidyverse

Lihat Kursus

Latihan interaktif praktis

Cobalah latihan ini dengan menyelesaikan kode contoh berikut.

# 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
Edit dan Jalankan Kode