legendary: omnibus: Fantabulous plotting functions

legendaryR Documentation

omnibus: Fantabulous plotting functions

Description

This package contains functions for new kinds of plots and legends.

Details

Create an issue on GitHub.

New plots

annulus: Annulus (a circle with a hole)
annulusSeg: Segmented annuli (segment of a circle with a hole)
arc: Arcs (segment of a circle)
pancakes: Side-by-side bar charts (useful for displaying female/male age structure, for example)
pies: Add a pie chart to a plot
quadPlot: 4-color/corner plot for data with proportional degrees of four categories
spoke: Nodes representing items arranged in a circle with lines drawn between them to represent connections (e.g., variables with high levels of correlation)

New legends

legendBreaks: Legend with stacked, colored bars useful for displaying, for example, maps of continuous values that have been thresholded using multiple values
legendGrad: Legend with a color gradient
legendQuad: Legend for data with proportional degrees of four categories (cf. quadPlot)

Auxiliary

colorFrom4Vector: Transforms a vector of four values to HSV color plus coordinates on a quadPlot
emptyCorner: Find the corner of the plot that is the least occupied by plot elements
getFig: Return coordinates for par(fig=xxxx) for use with layout function for placing subplots
labelFig: Adds a figure title in the upper left corner of the plot region (as in manuscripts)

Author(s)

Adam B. Smith


adamlilith/legendary documentation built on July 28, 2023, 8:13 p.m.