View source: R/plotMDFR.Bubbles.R
plotMDFR.Bubbles | R Documentation |
Function to plot a melted dataframe using a bubble plot format.
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
)
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= |
guideTitleColour |
- title for colour 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.