params2gp: Params to Graphical Parameters

View source: R/assemble-graphs.R

params2gpR Documentation

Params to Graphical Parameters

Description

Converts the elements of a elemnt_text specification from ggplot2 into the graphical parameter vector that is needed for grid graphics.

Usage

params2gp(p, bs)

Arguments

p

Parameter vector from a ggplot object, as specified in the plot's theme.

bs

The base size of the fonts in the ggplot plot. This is necessary for cases where the font size in the parameter vector is expressed as a relative size.


kbrevoort/kpbtemplates documentation built on May 31, 2024, 12:29 p.m.