View source: R/plotMDFR.Bars.R
plotMDFR.Bars | R Documentation |
Function to plot a melted dataframe using a barchart format.
plotMDFR.Bars(
mdfr,
x = NULL,
value.var = "val",
agg.formula = NULL,
agg.function = sum,
...,
colour = NULL,
fill = NULL,
faceting = NULL,
position = "dodge",
xlab = "",
ylab = "",
units = "",
lnscale = FALSE,
title = "",
guideTitleColour = NULL,
guideTitleFill = NULL,
ggtheme = ggplot2::theme_gray(),
showPlot = FALSE
)
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 |
faceting |
- faceting formula |
position |
- ggplot2 string for bar position adjustments: "dodge", "stack" |
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 |
ggtheme |
- ggplot2 theme for plot (default= |
showPlot |
- flag to show plot immediately |
uses reshape2
package.
ggplot2 object
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.