제목의 모양 바꾸기
미리 정의된 theme 프리셋을 적용하는 것 외에도, 다양한 스타일 속성을 바꿔서 플롯을 더 세밀하게 다듬을 수 있어요. 힌트: 이전 연습 문제에서 만든 ilo_plot 변수를 다시 사용하고 덮어써도 돼요. 현재 플롯은 오른쪽 창에 이미 표시되어 있어요.
이 연습은 강의의 일부입니다
Tidyverse로 데이터 소통하기
연습 안내
사용자 지정
theme()호출과element_text()를 사용해 보세요.- text의 글꼴
family를"Bookman"으로 바꾸세요. - 추가로, title과 caption의
color를 각각"gray25"와"gray30"로 바꾸세요. - subtitle은
size를 12로 키워 조금 더 크게 하세요.
- text의 글꼴
실습형 인터랙티브 연습
이 예제를 이 샘플 코드를 완성하여 풀어보세요.
ilo_plot <- ilo_plot +
theme_minimal() +
# Customize the "minimal" theme with another custom "theme" call
theme(
text = element_text(___ = ____),
title = element_text(___ = ____),
plot.caption = element_text(___ = ___),
plot.subtitle = element_text(___ = ____)
)
# Render the plot object
ilo_plot