Chapter 10 Time-Series 데이터 시각화

10.1 correlation 그래프 생성

# install.packages("GGally") #라이브러리 설치
library(GGally)
ggcorr(mpg)

10.2 plot.ly 이용해서 interactive 그래프 그리기

library(plotly)
p <- plot_ly(midwest, x = ~percollege, color = ~state, type = "box")
p
library(plotly)
Sys.setenv("plotly_username"="dangtong")
Sys.setenv("plotly_api_key"="or6V1k4iV5yVeRHzHZe7")
p <- plot_ly(data = iris, x = ~Sepal.Length, y = ~Petal.Length)
p
# Create a shareable link to your chart
# Set up API credentials: https://plot.ly/r/getting-started
chart_link = api_create(p, filename="scatter-basic")
chart_link