HPI 애니메이션 다듬기
이 연습 문제에서는 이전 레슨에서 만든 실질 GDP 대비 주택가격지수(HPI) 버블 차트를 더 깔끔하게 다듬어 보겠습니다.
이 연습은 강의의 일부입니다
R로 배우는 plotly 중급 인터랙티브 데이터 시각화
실습형 인터랙티브 연습
이 예제를 이 샘플 코드를 완성하여 풀어보세요.
# Polish the axis titles and log-transform the x-axis
us_economy %>%
plot_ly(x = ~gdp, y = ~house_price) %>%
add_markers(
size = ~population, color = ~region,
frame = ~year, ids = ~state,
marker = list(sizemode = "diameter")
) %>%
layout(
___,
___
)