1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54
|
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/panel.needle.R
\name{panel.needle}
\alias{panel.needle}
\title{Needle Plot Lattice Panel}
\usage{
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,
...
)
}
\arguments{
\item{x, y}{variables to be plotted in the panel. Typically y is the 'factor'}
\item{horizontal}{logical. If FALSE, the plot is `transposed' in the sense
that the behaviours of x and y are switched. x is now the `factor'.
Interpretation of other arguments change accordingly. See documentation of
\code{bwplot} for a fuller explanation.}
\item{pch, col, lty, lwd, col.line}{graphical parameters}
\item{levels.fos}{locations where reference lines will be drawn}
\item{groups}{grouping variable (affects graphical parameters)}
\item{\dots}{extra parameters, passed to \code{panel.xyplot} which is
responsible for drawing the foreground points (\code{panel.dotplot} only
draws the background reference lines).}
}
\description{
A variation of \code{panel.dotplot} that plots horizontal lines from zero to
the data point.
}
\details{
Creates (possibly grouped) needleplot of \code{x} against \code{y} or vice
versa
}
\seealso{
\code{\link{dotplot}}
}
\author{
Max Kuhn, based on \code{\link[lattice]{panel.dotplot}} by Deepayan
Sarkar
}
\keyword{graphs}
|