시작하기무료로 시작하기

기본 테마 적용하기

영상에서 배운 것처럼 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
코드 편집 및 실행