PrettyBarPlot | R Documentation |
PrettyBarPlot
: Creates bar plots for a set of items
(e.g., observations or variables) analyzed with multivariate
methods such as PCA, CA, MCA, PLS, etc.
PrettyBarPlot( bootratio, threshold = 2, ylim = NULL, color.bar = c("lavender", "darkolivegreen3", "gray90"), color.letter = c("mediumpurple4", "darkolivegreen4", "gray75"), plotnames = TRUE, main = NULL, ylab = NULL )
bootratio |
the bootstrap ratios (BR) to be plotted
(e.g., obtained from |
threshold |
The critical value for significance
(default = 2, a value that matches a p < .05
significance level)
|
ylim |
a 2-element vector giving |
color.bar |
a 3-element vector of color names
for the bars for (respectively)
significant positive, significant negative,
and non-significant.
Default is |
color.letter |
a 3-element vector of color names
for the names of the items for (respectively)
significant positive,
significant negative, and non-significant.
Default is
|
plotnames |
if |
main |
(default is |
ylab |
(default is |
PrettyBarPlot
is
used to display the bootstrap ratios or contributions plots
for CA/MCA/PCA/PLS, etc.
Significant or important items are plotted in color,
non-significant
items are plotted in gray.
PrettyBarPlot2
,
is a newer ggplot2
-based version that can be used
in lieu of PrettyBarPlot
.
A list: 1) ylim
: min and max for y,
and 2) threshold.
Hervé Abdi
Hervé Abdi, Derek Beaton, and Vincent Guillemot.
PrettyBarPlot2
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.