bump: bump chart

View source: R/plot_special.R

bumpR Documentation

bump chart

Description

A bump chart

Usage

bump(mat, adj = 0.1, ...)

Arguments

mat

an n x t matrix with n observations and t timepoints

adj

label position adjustment, larger values move labels farther from start/end positions

...

additional graphical parameters passed to par

Examples

set.seed(1)
mat <- replicate(5, sample(1:10))
dimnames(mat) <- list(rownames(mtcars)[1:nrow(mat)],
                      paste0('time', 1:ncol(mat)))
bump(mat, mar = c(2, 0, 2, 9))


raredd/plotr documentation built on Nov. 19, 2023, 4:09 a.m.