plotMDFR.Bubbles: Create or add to a circle plot of age or size comp.s.

View source: R/plotMDFR.Bubbles.R

plotMDFR.BubblesR Documentation

Create or add to a circle plot of age or size comp.s.

Description

Creates or adds to a circle plot of age or size comp.s.

Usage

plotMDFR.Bubbles(
  mdfr,
  x = NULL,
  y = NULL,
  value.var = "val",
  agg.formula = NULL,
  agg.function = sum,
  ...,
  colour = NULL,
  facet_grid = NULL,
  units = "",
  xlab = "",
  ylab = "",
  title = "",
  alpha = 0.5,
  maxBubbleSize = 6,
  useColourGradient = FALSE,
  guideTitleColour = "",
  showPlot = FALSE
)

Arguments

x
  • column name for x-axis values

y
  • column name for y-axis values

value.var
  • column name for values to aggregate (value.var in cast)/plot as circles

agg.formula
  • aggregation formula (left-hand side of cast formula)

agg.function
  • aggregation function (fun.aggregate in cast)

...
  • further arguments passed to aggregating function

colour
  • column name to which colour aesthetic is mapped

facet_grid
  • faceting formula

units
  • units for bubble size scale

xlab
  • x axis label

ylab
  • y axis label

title
  • plot title

alpha
  • transparency level

maxBubbleSize
  • max bubble size

useColourGradient
  • flag (T/F) to use a color gradient for bubble color

guideTitleColour
  • title for colour guide

showPlot
  • flag to show plot immediately

Details

uses reshape2 package.

Value

ggplot2 object


wStockhausen/rCompTCMs documentation built on Aug. 27, 2024, 7:15 p.m.