plotMDFR.BarLine: Plot melted dataframe using a barchart/line-plot format.

View source: R/plotMDFR.BarLine.R

plotMDFR.BarLineR Documentation

Plot melted dataframe using a barchart/line-plot format.

Description

Function to plot a melted dataframe using a barchart/line-plot format.

Usage

plotMDFR.BarLine(
  mdfr,
  x = NULL,
  value.var = "val",
  agg.formula = NULL,
  agg.function = sum,
  ...,
  colour = NULL,
  fill = NULL,
  linetype = NULL,
  shape = NULL,
  faceting = NULL,
  xlab = "",
  ylab = "",
  units = "",
  lnscale = FALSE,
  title = "",
  guideTitleColour = NULL,
  guideTitleFill = NULL,
  guideTitleLineType = NULL,
  guideTitleShape = NULL,
  ggtheme = ggplot2::theme_gray(),
  showPlot = FALSE
)

Arguments

mdfr

- melted dataframe

x

- column name for x-axis values

value.var

- column name for values to aggregate (value.var in cast)/plot on y-axis

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

fill

- column name to which fill aesthetic is mapped

linetype

- column name to which linetype aesthetic is mapped

shape

- column name to which shape aesthetic is mapped

faceting

- faceting formula

xlab

- x axis label

ylab

- y axis label

units

- combined with y axis label

lnscale

- flag to plot on ln-scale

title

- plot title

guideTitleColour

- title for colour guide

guideTitleFill

- title for fill guide

guideTitleLineType

- title for linetype guide

guideTitleShape

- title for shape 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.