Friday 15th July

`

library(plotly)
## Loading required package: ggplot2
## 
## Attaching package: 'plotly'
## The following object is masked from 'package:ggplot2':
## 
##     last_plot
## The following object is masked from 'package:stats':
## 
##     filter
## The following object is masked from 'package:graphics':
## 
##     layout

Creating a plot

v <- plot_ly(z=volcano, type="surface")
v
p <- plot_ly(mtcars, x= ~hp, y= ~mpg, color = ~factor(cyl), type= "bar") %>%
             layout(title = "MPG by Weight split by Cylinder")
p