R로 배우는 plotly 인터랙티브 데이터 시각화
Adam Loy
Statistician, Carleton College



wine %>%
count(Type) %>%
plot_ly(x = ~Type, y = ~n,
# Changing the default info displayed
hoverinfo = "y"
) %>%
add_bars()
hoverinfo =
"all""x""y""x+y""x+y+z"wine %>% plot_ly(x = ~Flavanoids, y = ~Alcohol,hoverinfo = "text",text = ~paste("Flavanoids:", Flavanoids, "<br>", "Alcohol:", Alcohol)) %>% add_markers()
~로 열을 미학 매개변수에 매핑
R로 배우는 plotly 인터랙티브 데이터 시각화