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