dv_annotate_count_axis: Annotate counts axis

Description Usage Arguments Value Examples

View source: R/dv_annotate_count_axis.R

Description

Annotate counts axis

Usage

1
2
3
4
5
6
7
8
dv_annotate_count_axis(
  counts,
  gp = grid::gpar(),
  prefix = "N",
  sep = "=",
  title = "N",
  vp = NULL
)

Arguments

counts

The counts to annotate plot with

gp

Graphical parameters for labels (see grid::gpar()).

prefix

A prefix for label counts (e.g., N)

sep

A separator between prefix and count (e.g., =)

title

The title to use (default is N)

vp

Viewport to plot in (see grid::viewport())

Value

A grob representing an annotated axis.

Examples

1
2
3
4
## Not run: 
dv_annotate_count_axis(counts=c(2,5,1,2), prefix="N", sep=":", title="Counts", vp = "panel")

## End(Not run)

steveneschrich/densityplots documentation built on Dec. 23, 2021, 5:32 a.m.