Opinionated ggplot2
with custom element sizes and color scales derived from Bootstrap branding (per _brand.yml
). Behind the scenes gglabs
uses theme_brand()
to control colors and fonts, and has Y-axis on the right. Axis placement can be modified with argument axes
.
Arguments
- data
Default dataset to use for plot. If not already a data.frame, will be converted to one by
fortify()
. If not specified, must be supplied in each layer added to the plot.- mapping
Default list of aesthetic mappings to use for plot. If not specified, must be supplied in each layer added to the plot.
- axes
position of X (
bottom
ortop
) and Y (left
orright
) axes (default:bottomright
)- ...
Arguments passed on to
theme_brand
base_bg
plot, panel, legend background
base_color
color for text and line elements
grid
show gridlines
XY
,X
,Y
(default) orn
for no gridlinelegend
shorthand for
theme(legend.position="...")
(default:top
)base_size
base font size, given in pts.
base_family
base font family