plotStackedBarplot | R Documentation |
This function will plot a stacked bar plot that has negative and positive values. It also has the option to plot the average of values provided.
plotStackedBarplot(
x,
y,
z,
zsc,
plotAverage = TRUE,
ylab1 = NULL,
ylab2 = NULL,
xaxtlabels = TRUE,
ylim1,
ylim2,
ncol = 1,
hclpalette = "Viridis",
legendLocation = "inside",
legendInset = c(-0.38, 0),
plotScorecard = FALSE,
scorecardLines = TRUE,
scorecardLabels = TRUE,
scorecardSeparation = par("cin")[2],
scorecardWidth = par("cin")[2]
)
x |
a vector indicating what the columns represent for |
y |
a vector indicating what the rows represent for |
z |
a matrix with the columns being the x-axis and the rows being items that wish to be stacked. |
zsc |
a vector of normalized values of z for the scorecard, ignored if |
plotAverage |
a logical value indicating whether or not to add the average value from matrix z. |
ylab1 |
name for the y-axis on side 2, default is |
ylab2 |
name for the y-axis on side 4 if |
ylim1 |
limits for the y-axis on side 2, if not supplied, it will be inferred from |
ylim2 |
limits for the y-axis on side 4 if |
ncol |
supplied to legend, the number of columns in which to set the legend items, default is 1. |
hclpalette |
Name of an |
legendLocation |
Character string, valid choices are |
legendInset |
Vector of two values to control placement of legend, see |
plotScorecard |
Logical indicating whether or not to plot scorecard on side = 1. |
scorecardLines |
Logical indicating whether or not to put vertical lines on scorecard. |
scorecardLabels |
Logical indicating whether or not to print |
scorecardSeparation |
Value used to denote the separation between the main plot and scorecard.
Suggested to use |
scorecardWidth |
Value used to denote the width of the scorecard. Suggested to use
|
xlabels |
Logical indicating if the x-axis ticks should be annotated. |
Chantelle Layton
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.