mplot3_lolli | R Documentation |
mplot3
Lollipop Plotmplot3
Lollipop Plot
mplot3_lolli(
x,
order.on.x = TRUE,
plot.top = 1,
orientation = c("horizontal", "vertical"),
xnames = NULL,
points = TRUE,
segments = TRUE,
main = NULL,
col = NULL,
cex = 1.2,
matching.segment.col = FALSE,
segment.alpha = 0.333,
lty = 3,
lwd = 2,
theme = rtTheme,
palette = rtPalette,
autolabel = letters,
par.reset = TRUE,
pdf.width = 6,
pdf.height = 6,
mar = c(2.5, 3, 2, 1),
pty = "m",
pch = 16,
x.axis.at = NULL,
y.axis.at = NULL,
xlab = NULL,
ylab = NULL,
label.las = 1,
label.padj = 0.5,
xaxs = "r",
yaxs = "r",
xlab.adj = 0.5,
ylab.adj = 0.5,
filename = NULL,
...
)
x |
Float, vector: Input data |
order.on.x |
Logical: If TRUE, order by value of |
plot.top |
Float or Integer: If <= 1, plot this percent highest absolute values, otherwise plot this many top values.
i.e.: |
xnames |
Character, vector: Names of |
main |
Character: Main title |
col |
Color, vector: Lollipop color |
cex |
Float: Character expansion factor for points. Default = 1.2 |
matching.segment.col |
Logical: If TRUE, color line segments using |
segment.alpha |
Float: Transparency for line segments. Default = .5
points. Default = FALSE, in which case they are colored with |
lty |
Integer: Line type for segment segments. See |
lwd |
Float: Width for segment segments. 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. |
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 |
pch |
Integer: Point character. |
x.axis.at |
Float, vector: x coordinates to place tick marks.
Default = NULL, determined by |
y.axis.at |
As |
xlab |
Character: x-axis label |
ylab |
Character: y-axis label |
xaxs |
Character: "r": Extend plot x-axis limits by 4% on either end; "i": Use exact x-axis limits. |
yaxs |
Character: as |
xlab.adj |
Float: |
ylab.adj |
Float: |
filename |
Character: Path to file to save plot. Default = NULL |
... |
Additional arguments to be passed to theme function |
E.D. Gennatas
## Not run:
x <- rnorm(12)
mplot3_lolli(x)
# a "rounded" barplot
mplot3_lolli(x, segments = T, points = F,
lty = 1, matching.segment.col = T,
lwd = 10, segment.alpha = 1)
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.