The goal of plotmpg is to provide a function for plotting displ
and hwy
variable of mpg dataset with different color and facet variable
You can install the development version of plotmpg from GitHub with:
# install.packages("devtools")
devtools::install_github("shafayetShafee/plotmpg")
This is a basic example which showing the functionality of this one function package:
To plot a scatterplot of displ
and hwy
with class
as facet variable
and drv
as colour variable, we can do this
library(plotmpg)
plot_mpg("class", "drv")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.