makeBubblePlots: Make bubble plots of a matrix or list of matrices

View source: R/makeBubblePlots.R

makeBubblePlotsR Documentation

Make bubble plots of a matrix or list of matrices

Description

Function to plot a matrix or list of matrices using a bubble plot.

Usage

makeBubblePlots(
  lst,
  x = "year",
  x.lbl = x,
  y = "size",
  y.lbl = y,
  z = "value",
  z.lbl = z,
  fill = "sex",
  fill.lbl = fill,
  scaleBy = 1,
  normalize = FALSE,
  xlims = NULL,
  ylims = NULL,
  colors = RColorBrewer::brewer.pal(11, "Spectral"),
  alpha = 0.5,
  showPlot = TRUE
)

Arguments

lst

: list or matrix

x

: column name for x axis

x.lbl

: label for x axis

y

: column name for y axis

y.lbl

: label for y axis

z

: column name for bubble sizes

z.lbl

: label for sizes

fill

: column name for bubble fill colours

fill.lbl

: label for fills

scaleBy

: value to scale bubbles by

normalize

: flag (T/F) to normalize sums to 1

xlims

: x-axis limits (or NULL)

ylims

: y-axis limits (or NULL)

colors

: color palette to use (default is RColorBrewer::brewer.pal(11,"Spectral"))

alpha

: transparency level

showPlot

: flag to print plot


wStockhausen/tcsamFunctions documentation built on Jan. 28, 2024, 9:01 a.m.