R-CMD-check / R CMD check (push) Successful in 2m39s
- Replace old civilytics_logo.png/white.png/jpg/pdf with new rebrand
assets: civilytics-wordmark.png, civilytics-wordmark-reverse.png,
civilytics-mark.png, civilytics-mark-reverse.png (all transparent bg)
- make_logo_grob() now accepts type = c("wordmark", "mark") alongside
variant = c("light", "dark") for 4 combinations
- New civilytics_logo() pipe-friendly convenience function:
ggplot(df, aes(x, y)) + geom_point() + theme_civilytics() |>
civilytics_logo()
R's |> has lower precedence than +, so the full ggplot chain pipes
through without parentheses
- Remove old icon/favicon assets no longer used
- Wrap showtext-dependent examples in \dontrun{} to prevent R CMD check
failures in headless PostScript environments
29 lines
711 B
R
29 lines
711 B
R
% Generated by roxygen2: do not edit by hand
|
|
% Please edit documentation in R/logo.R
|
|
\name{plot_jpeg}
|
|
\alias{plot_jpeg}
|
|
\title{Plot a jpeg image as a raster}
|
|
\usage{
|
|
plot_jpeg(path, add = FALSE, upscale = TRUE)
|
|
}
|
|
\arguments{
|
|
\item{path}{a character representing the relative or absolute path to the image}
|
|
|
|
\item{add}{a logical, TRUE to add the image to an existing plot, FALSE creates a new plot}
|
|
|
|
\item{upscale}{a logical, TRUE upscales the resolution of the graphic by a factor of 3, FALSE
|
|
preserves the resolution}
|
|
}
|
|
\value{
|
|
a rasterImage
|
|
}
|
|
\description{
|
|
Plot a jpeg image as a raster
|
|
}
|
|
\examples{
|
|
\dontrun{
|
|
img <- system.file("img","Knowles_Headshot_2019_good.jpg",package="civilytics")
|
|
plot_jpeg(img)
|
|
}
|
|
}
|