1 August 2018

Load Data

Data source is an internal dataset called "Iris"

library(plotly)
data("iris")

Plotly function

plot_ly(iris, 
        x=~Sepal.Length, 
        y=~Sepal.Width,
        type="scatter", 
        mode="markers", 
        color= ~Petal.Width)

Plotly plot