The R Project SVN R

Rev

Rev 56186 | Go to most recent revision | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
42333 ripley 1
% File src/library/graphics/man/plot.xy.Rd
2
% Part of the R package, http://www.R-project.org
59039 ripley 3
% Copyright 1995-2007 R Core Team
42333 ripley 4
% Distributed under GPL 2 or later
5
 
27442 ripley 6
\name{plot.xy}
56186 murdoch 7
\alias{plot.xy}
27442 ripley 8
\title{Basic Internal Plot Function}
9
\description{
10
  This is \emph{the} internal function that does the basic plotting of
11
  points and lines.  Usually, one should rather use the higher level
12
  functions instead and refer to their help pages for explanation of the
13
  arguments.
14
}
15
\usage{
36110 ripley 16
plot.xy(xy, type, pch = par("pch"), lty = par("lty"),
17
        col = par("col"), bg = NA,
30819 maechler 18
        cex = 1, lwd = par("lwd"), \dots)
27442 ripley 19
}
20
\arguments{
21
  \item{xy}{A four-element list as results from
22
    \code{\link{xy.coords}}.}
36235 ripley 23
  \item{type}{1 character code: see \code{\link{plot.default}}.
24
    \code{NULL} is accepted as a synonym for \code{"p"}.}
25
  \item{pch}{character or integer code for kind of points, see
27442 ripley 26
    \code{\link{points.default}}.}
27
  \item{lty}{line type code, see \code{\link{lines}}.}
28
  \item{col}{color code or name, see \code{\link{colors}},
36121 ripley 29
    \code{\link{palette}}.  Here \code{NULL} means colour 0.}
42961 ripley 30
  \item{bg}{background (fill) color for the open plot symbols 21:25:
32028 ripley 31
    see \code{\link{points.default}}.}
27442 ripley 32
  \item{cex}{character expansion.}
30819 maechler 33
  \item{lwd}{line width, also used for (non-filled) plot symbols, see
34
    \code{\link{lines}} and \code{\link{points}}.}
56113 ripley 35
  \item{\dots}{further \link{graphical parameters} such as \code{xpd},
36235 ripley 36
    \code{lend}, \code{ljoin} and \code{lmitre}.}
27442 ripley 37
}
30826 maechler 38
\details{
49612 hornik 39
  The arguments \code{pch}, \code{col}, \code{bg}, \code{cex},
40
  \code{lwd} may be vectors and may be recycled, depending on
41
  \code{type}: see \code{\link{points}} and \code{\link{lines}} for
42
  specifics.  In particular note that \code{lwd} is treated as a vector
43
  for points and as a single (first) value for lines.
45975 ripley 44
 
45
  \code{cex} is a numeric factor in addition to \code{par("cex")} which
46
  affects symbols and characters as drawn by \code{type} \code{"p"},
47
  \code{"o"}, \code{"b"} and \code{"c"}.
30826 maechler 48
}
27442 ripley 49
\seealso{
50
  \code{\link{plot}},
51
  \code{\link{plot.default}},
52
  \code{\link{points}},
53
  \code{\link{lines}}.
54
}
55
\examples{
27714 ripley 56
points.default # to see how it calls "plot.xy(xy.coords(x, y), ...)"
27442 ripley 57
}
58
\keyword{aplot}