ToyotaSiennaGasMileage provides gas consumption data on a 2011 Toyota Sienna XLE from purchase through today. The data are available for those who are studying gas consumption, but also available for anybody interested in plotting or modeling a time series with irregular observations.
Data were originally recorded by hand. These sheets were scanned and digitized
into csv files that match the scanned sheets. An R script is used to combine
all the files into a single R data.frame included in the package as
ToyotaSiennaGasMileage
. Thus, these files provide an example data management
process for manually recorded data.
You can install the released version of ToyotaSiennaGasMileage from CRAN with:
install.packages("ToyotaSiennaGasMileage")
And the development version from GitHub with:
# install.packages("devtools")
devtools::install_github("jarad/ToyotaSiennaGasMileage")
Here is a graphical display of the data.
library(ToyotaSiennaGasMileage)
library(ggplot2)
ggplot(ToyotaSiennaGasMileage,
aes(x = date, y = miles/gallons)) +
geom_point()
#> Warning: Removed 8 rows containing missing values (geom_point).
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.