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.
We are going to plot ‘Mileage per gallon’ vs ‘Weight (1000 lbs)’, by ‘# of cylinders’
library(plotly)
## Warning: package 'plotly' was built under R version 4.0.2
## 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
f <- list(
family = "Courier New, monospace",
size = 11, color = "#6e6e6e" )
x <- list(
title = "Weight (1000 lbs)", titlefont = f )
y <- list(
title = "Mileage per gallon", titlefont = f )
## 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.
## Warning: `line.width` does not currently support multiple values.
## Warning: `line.width` does not currently support multiple values.
## Warning: `line.width` does not currently support multiple values.
Simply put: