View source: R/barPercentage.R
barPercentage | R Documentation |
Pretty customizable barplot
barPercentage(
x,
cols = NULL,
lwd = 2,
digits = 1,
val_perc = c(1, 2),
titleLab = NA,
textPos = 2,
sameColLines = TRUE,
tagPosDelay = 0
)
x |
Numeric vector for plotting. See Details. |
cols |
Color palette used for plotting. |
lwd |
Line width. |
digits |
Number of digits for rounding. |
val_perc |
Whether to show values and/or percentage in labels. |
titleLab |
Label for title. |
textPos |
A position specifier for the text. |
sameColLines |
|
tagPosDelay |
Relative origin of guide lines expresed in a single number from -1 to 1. |
x
must be numeric and the names of values will be used for
legend labels. If the vector does not have names, a temporal names will be
created on the form of 'Value_#'.
Nothing but the pretty barplot.
barPercentage(x = c(55, 14, 10, 2))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.