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
library(dplyr)
##
## Attaching package: 'dplyr'
## The following objects are masked from 'package:stats':
##
## filter, lag
## The following objects are masked from 'package:base':
##
## intersect, setdiff, setequal, union
Create a web page presentation using R Markdown that features a plot created with Plotly. Host your webpage on either GitHub Pages, RPubs, or NeoCities. Your webpage must contain the date that you created the document, and it must contain a plot created with Plotly. We would love to see you show off your creativity! Review criteria
The rubric contains the following two questions:
plot_ly(x=iris$Sepal.Length,y=iris$Sepal.Width, mode="markers") %>% layout(title='31 Oct 2021 - adding the date')
## No trace type specified:
## Based on info supplied, a 'scatter' trace seems appropriate.
## Read more about this trace type -> https://plotly.com/r/reference/#scatter
plot_ly(data=mtcars, x=mtcars$wt, y=mtcars$mpg, mode="markers", color = mtcars$disp)%>% layout(title='31 Oct 2021 - adding the date')
## No trace type specified:
## Based on info supplied, a 'scatter' trace seems appropriate.
## Read more about this trace type -> https://plotly.com/r/reference/#scatter
plot_ly(midwest, x = ~percollege, color = ~state, type = "box")%>% layout(title="31 Oct 2021 - adding the date")