View source: R/makeBubblePlots.R
makeBubblePlots | R Documentation |
Function to plot a matrix or list of matrices using a bubble plot.
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
)
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 |
alpha |
: transparency level |
showPlot |
: flag to print plot |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.