`
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
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