knitr::opts_chunk$set( collapse = TRUE, comment = "#>", dpi = 192, fig.path = "man/figures/README-", out.width = "100%" )
r desc::desc_get_field("Title")
: r desc::desc_get_field("Description")
You can install the development version of jbplot from GitHub with:
# install.packages("remotes") remotes::install_github("jabenninghoff/jbplot")
Or using renv:
# install.packages("renv") renv::install("jabenninghoff/jbplot")
NEWS.md
.jbplot allows creation of styled plots, such as this mtcars
example, adapted from ggplot2::theme_minimal()
:
library(ggplot2) library(jbplot) ggplot(mtcars, aes(x = wt, y = mpg, color = factor(cyl))) + geom_point() + labs( title = "Fuel economy declines as weight increases", subtitle = "(1973-74)", caption = "Data from the 1974 Motor Trend US magazine.", x = "Weight (1000 lbs)", y = "Fuel economy (mpg)", color = "Gears" ) + theme_quo() + scale_color_viridis_d()
For more information, see the "jbplot ggplot2 style" get started vignette.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.