barplot_usq: Basic barplots using USQ colours and typography

Description Usage Arguments Details Examples

View source: R/barplot_usq.R

Description

Basic barplots that follow USQ colour and typography guidelines that uses (hopefully) sensible defaults.

Usage

1
barplot_usq(height, col = "usq charcoal", ...)

Arguments

height

Either a vector or matrix of values describing the bars which make up the plot. If height is a vector, the plot consists of a sequence of rectangular bars with heights given by the values in the vector. If height is a matrix and beside is FALSE then each bar of the plot corresponds to a column of height, with the values in the column giving the heights of stacked sub-bars making up the bar. If height is a matrix and beside is TRUE, then the values in each column are juxtaposed rather than stacked.

col

Colour to use as fill for the bars as a digit. Defaults to 1, "usq charcoal". There are six colours that can be used, see Details for more.

...

Arguments to be passed to methods, such as graphical parameters (see par).

Details

Names of colours for use in plots from the USQ Visual Identity Palette are available from link{usq_cols}.

Examples

1
barplot_usq(islands, col = "secondary orange")

adamhsparks/theme_usq documentation built on Nov. 18, 2020, 3:50 a.m.