boxplot_usq: Basic boxplots using USQ colours and typography

Description Usage Arguments Details See Also Examples

View source: R/boxplot_usq.R

Description

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

Usage

1
2
3
4
5
6
7
8
9
boxplot_usq(
  x,
  main = "",
  sub = "",
  xlab = "",
  ylab = "",
  col = "usq charcoal",
  ...
)

Arguments

x

for specifying data from which the boxplots are to be produced. Either a numeric vector, or a single list containing such vectors. Additional unnamed arguments specify further data as separate vectors (each corresponding to a component boxplot). NAs are allowed in the data.

main

Main title. Optional, if not supplied it will be blank.

sub

Sub title below x-axis label. Optional, if not supplied it will be blank.

xlab

X-axis label. Optional.

ylab

Y-axis label. Optional.

col

Colour to use as fill and outline for boxes and outlier points as a digit. Defaults to "usq charcoal". There are fifteen 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}.

See Also

boxplot for full documentation of the basic boxplot capabilities

Examples

1
2
3
4
5
6
# plot using "secondary orange" as the fill colour

rb <- boxplot_usq(decrease ~ treatment,
                  data = OrchardSprays,
                  col = "secondary orange")
title("Comparing boxplot()s and non-robust mean +/- SD")

adamhsparks/theme.usq documentation built on Nov. 20, 2020, 8:11 a.m.