wfplot: Quick waterfall plot

View source: R/skitools.R

wfplotR Documentation

Quick waterfall plot

Description

Quick waterfall plot

data is a numeric vector labels are text labels of the same length as data col is either (1) an unamed list of unique colors (2) a named list mapping unique labels to colors

Usage

wfplot(
  data,
  labels = NULL,
  names.arg = NULL,
  col = NULL,
  las = 2,
  cex = 1,
  leg.pos = NULL,
  ...
)

Arguments

data

length n numeric vector to be drawn and sorted on y axis

labels

length n character vector categorical labels of data

names.arg

length n character vector, optional, of individual labels to be drawn verticallyon x axis

col

optional named character vector mapping unique category labels to colors

las

optional integer vector specifying orientation of labels on barplot

cex

numeric value specifying size of names.arg data labels

leg.pos

NULL

...

additional arguments to barplot

Value

plot

Author(s)

Marcin Imielinski


mskilab/skitools documentation built on July 5, 2024, 7:27 a.m.