8/31/2021

Introduction

  • Create a web page presentation using R Markdown that features a plot created with Plotly.
  • Host the webpage on either GitHub Pages, RPubs, or NeoCities.
  • The webpage must contain the date for creating the document, and it must contain a plot created with Plotly.

Loading Plotly Package

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

Showing a Plot

plot_ly(InsectSprays, y = ~count, color = ~spray, type = "box")