| panel.needle | R Documentation |
A variation of panel.dotplot that plots horizontal lines from zero to the
data point.
panel.needle(
x,
y,
horizontal = TRUE,
pch = if (is.null(groups)) dot.symbol$pch else sup.symbol$pch,
col = if (is.null(groups)) dot.symbol$col else sup.symbol$col,
lty = dot.line$lty,
lwd = dot.line$lwd,
col.line = dot.line$col,
levels.fos = NULL,
groups = NULL,
...
)
x, y |
variables to be plotted in the panel. Typically y is the 'factor' |
horizontal |
logical. If FALSE, the plot is |
pch, col, lty, lwd, col.line |
graphical parameters |
levels.fos |
locations where reference lines will be drawn |
groups |
grouping variable (affects graphical parameters) |
... |
extra parameters, passed to |
Creates (possibly grouped) needleplot of x against y or vice versa
Max Kuhn, based on lattice::panel.dotplot() by Deepayan Sarkar
lattice::dotplot()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.