mplot3_bar | R Documentation |
mplot3
: BarplotDraw barplots
mplot3_bar(
x,
error = NULL,
col = NULL,
error.col = "white",
error.lwd = 2,
alpha = 1,
beside = TRUE,
border = NA,
width = 1,
space = NULL,
xlim = NULL,
ylim = NULL,
xlab = NULL,
ylab = NULL,
main = NULL,
las = 1.5,
xnames = NULL,
xnames.srt = 0,
xnames.adj = ifelse(xnames.srt == 0, 0.5, 1),
xnames.line = 0.5,
xnames.font = 1,
xnames.cex = 1,
xnames.y.pad = 0.08,
xnames.at = NULL,
color.bygroup = FALSE,
group.legend = NULL,
legend.x = NULL,
legend.y = NULL,
group.names = NULL,
legend.font = 1,
bartoplabels = NULL,
bartoplabels.line = 0,
bartoplabels.font = 1,
mar = c(2.5, 3, 2, 1),
pty = "m",
barplot.axes = FALSE,
yaxis = TRUE,
ylim.pad = 0.04,
theme = rtTheme,
palette = rtPalette,
autolabel = letters,
par.reset = TRUE,
pdf.width = 6,
pdf.height = 6,
filename = NULL,
...
)
x |
Vector or Matrix: If Vector, each value will be drawn as a bar. If Matrix, each column is a vector, so multiple columns signify a different group. e.g. Columns could be months and rows could be N days sunshine, N days rainfall, N days snow, etc. |
error |
Vector or Matrix: If Vector, each value will be drawn as an error bar. If Matrix, each column is a vector, so multiple columns signify a different group. |
col |
Vector of colors to use |
alpha |
Float: Alpha to be applied to |
border |
Color if you wish to draw border around bars, NA for no borders (Default) |
space |
Float: Space left free on either side of the bars, as a fraction of bar width. A single number or a
vector, one value per bar. If |
xlim |
Float vector, length 2: x-axis limits |
ylim |
Float vector, length 2: y-axis limits |
xlab |
Character: x-axis label |
ylab |
Character: y-axis label |
main |
Character: Plot title |
color.bygroup |
Logical: If TRUE, and input is a matrix, each group's bars will be given the same color, otherwise bars across groups will be given the same sequence of colors. Default = FALSE |
group.legend |
Logical: If TRUE, place |
group.names |
(Optional) If multiple groups are plotted, use these
names if |
mar |
Float, vector, length 4: Margins; see |
pty |
Character: "s" gives a square plot; "m" gives a plot that fills
graphics device size. Default = "m" (See |
theme |
Character: Run |
palette |
Vector of colors, or Character defining a builtin palette -
get options with |
autolabel |
Character vector to be used to generate autolabels when using
rtlayout with |
par.reset |
Logical: If TRUE, reset |
pdf.width |
Float: Width in inches for pdf output (if |
pdf.height |
Float: Height in inches for pdf output. |
filename |
Character: Path to file to save plot. Default = NULL |
... |
Additional arguments to |
legend |
Logical: If TRUE, and input is matrix, draw legend for each case. Note: you may need to adjust
|
E.D. Gennatas
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.