R Markdown

This is an R Markdown document. Markdown is a simple formatting syntax for authoring HTML, PDF, and MS Word documents. For more details on using R Markdown see http://rmarkdown.rstudio.com.

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

# Load the plotly library
library(plotly)
plot_ly(z=volcano, type="surface")
p <- plot_ly(midwest, x = ~percollege, color = ~state, type = "box")
p

Explanation of the code:

Warning: arrange_() is deprecated as of dplyr 0.7.0.

Please use arrange() instead.

See vignette(‘programming’) for more help

This warning is displayed once every 8 hours.

Call lifecycle::last_warnings() to see where this warning was generated.

Note that the echo = FALSE parameter was added to the code chunk to prevent printing of the R codlibrary(plotly) e that generated the plot.