Terry Jones
November 12, 2018
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!
# Set working directory
setwd("C:/Users/tljon/datasciencecoursera")
# Load libraries
library(ggplot2)
library(plotly)##
## 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
# Retrieve dataset
data(mtcars)
# Prepare chart
p <- plot_ly(mtcars, x=~hp, y =~mpg, type='scatter', mode='markers')