# NOT RUN {
# Load mpg data from ggplot2
data("mpg", package = "ggplot2")
# Scatterplot mpg dataset by "hwy"
plot_scatterplot(mpg, "hwy", size = 1)
# Scatterplot mpg dataset by "class"
plot_scatterplot(mpg, "class", size = 1)
# Scatterplot with preset ggplot2 themes
library(ggplot2)
plot_scatterplot(mpg, "hwy", ggtheme = theme_light())
# Scatterplot with customized theme components
plot_scatterplot(mpg, "hwy", theme_config = list("axis.text.x" = element_text(angle = 90)))
# }
Run the code above in your browser using DataLab