plotMDFR.Bubbles: Plot melted dataframe using a bubble plot format

View source: R/plotMDFR.Bubbles.R

plotMDFR.BubblesR Documentation

Plot melted dataframe using a bubble plot format

Description

Function to plot a melted dataframe using a bubble plot format.

Usage

plotMDFR.Bubbles(
  mdfr,
  x = NULL,
  y = NULL,
  value.var = "val",
  agg.formula = NULL,
  agg.function = sum,
  ...,
  colour = NULL,
  facet_grid = NULL,
  xlab = "",
  ylab = "",
  title = "",
  guideTitleSize = "",
  alpha = 0.5,
  maxBubbleSize = 6,
  useColourGradient = FALSE,
  colourPalette = wtsUtilities::createColorPalette("jet", 100, alpha = alpha),
  guideTitleColour = "",
  ggtheme = ggplot2::theme_gray(),
  showPlot = FALSE
)

Arguments

mdfr

- melted dataframe

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

xlab

- x axis label

ylab

- y axis label

title

- plot title

guideTitleSize

- title for size guide

alpha

- transparency level

maxBubbleSize

- max bubble size

useColourGradient

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

colourPalette

- colour palette for colour gradient (default=wtsUtilities::createColorPalette('jet',100,alpha=alpha))

guideTitleColour

- title for colour guide

ggtheme

- ggplot2 theme for plot (default=ggplot2::theme_gray())

showPlot

- flag to show plot immediately

Details

uses reshape2 package.

Value

ggplot2 object


wStockhausen/wtsPlots documentation built on July 19, 2023, 8:15 p.m.