July 3rd, 2018. Testing plotly with Iris data. Baisc histogram.
data(iris)
require(plotly)
## Loading required package: 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
attach(iris)
map <-plot_ly(x=Sepal.Length,type='histogram')
xaxis = list(title = "Sepal.Length")
yaxis = list(title = "Count")
map