25/02/2020

Plot with plotly using mtcars dataset

library(plotly)
plot_ly(x=mtcars$hp,y=mtcars$mpg, color=as.factor(mtcars$cyl))