The R function creates an HTML page The HTML page calls google charts The result is an interactive graphic

Example

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
plot_ly(mtcars, x = ~wt, y = ~mpg, mode = "markers")
## No trace type specified:
##   Based on info supplied, a 'scatter' trace seems appropriate.
##   Read more about this trace type -> https://plot.ly/r/reference/#scatter
## Warning in arrange_impl(.data, dots): '.Random.seed' is not an integer
## vector but of type 'NULL', so ignored

Charts in googleVis

“gvis + ChartType” Motion charts: gvisMotionChart Interactive maps: gvisGeoChart Interactive tables: gvisTable Line charts: gvisLineChart Bar charts: gvisColumnChart Tree maps: gvisTreeMap