Histogram
library(plotly)
## Warning: package 'plotly' was built under R version 3.5.1
## Warning: package 'ggplot2' was built under R version 3.5.1
library(datasets)
data(precip)
plot_ly(x=precip,type="histogram")
Boxplot
library(plotly)
library(datasets)
data(iris)
plot_ly(iris,y=iris$Petal.Length,color=iris$Species,type="box")
Heatmaps
terrain1 <-matrix(rnorm(100*100),nrow=100,ncol=100)
plot_ly(z=terrain1,type="heatmap")
3D Surface
terrain2 <-matrix(sort(rnorm(100*100)),nrow=100,ncol=100)
plot_ly(z=terrain2,type="surface")