knitr::opts_chunk$set(
  collapse = TRUE,
  comment = "#>",
  dpi = 192,
  fig.path = "man/figures/README-",
  out.width = "100%"
)

jbplot logo

R-CMD-check lint Codecov test coverage

Overview

r desc::desc_get_field("Title"): r desc::desc_get_field("Description")

Installation

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")

Development

Examples

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.



jabenninghoff/jbplot documentation built on Jan. 31, 2025, 7:50 a.m.