The R Project SVN R

Rev

Rev 8286 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 8286 Rev 15702
Line 1... Line 1...
1
\name{plot.window}
1
\name{plot.window}
2
\title{Set up World Coordinates for Graphics Window}
-
 
3
\usage{
-
 
4
plot.window(xlim, ylim, log = "", asp = NA, \dots)
-
 
5
}
-
 
6
\alias{plot.window}
2
\alias{plot.window}
7
\arguments{
-
 
8
\item{xlim, ylim}{numeric of length 2, giving the x and y coordinates ranges.}
-
 
9
\item{log}{character; indicating which axes should be in log scale.}
-
 
10
\item{asp}{numeric, giving the \bold{asp}ect ratio y/x.}
3
\title{Set up World Coordinates for Graphics Window}
11
\item{\dots}{further graphical parameters as in \code{\link{par}(..)}.}
-
 
12
}
-
 
13
\description{
4
\description{
14
  This function sets up the world coordinate system for a graphics
5
  This function sets up the world coordinate system for a graphics
15
  window.  It is called by higher level functions such as
6
  window.  It is called by higher level functions such as
16
  \code{\link{plot.default}} (\emph{after} \code{\link{plot.new}}).
7
  \code{\link{plot.default}} (\emph{after} \code{\link{plot.new}}).
17
}
8
}
-
 
9
\usage{
-
 
10
plot.window(xlim, ylim, log = "", asp = NA, \dots)
-
 
11
}
-
 
12
\arguments{
-
 
13
  \item{xlim, ylim}{numeric of length 2, giving the x and y coordinates
-
 
14
    ranges.}
-
 
15
  \item{log}{character; indicating which axes should be in log scale.}
-
 
16
  \item{asp}{numeric, giving the \bold{asp}ect ratio y/x.}
-
 
17
  \item{\dots}{further graphical parameters as in \code{\link{par}}.}
-
 
18
}
18
\details{
19
\details{
19
  Note that if \code{asp} is a finite positive value then
20
  Note that if \code{asp} is a finite positive value then the window is
20
  the window is set up so that one data unit in the x direction
21
  set up so that one data unit in the x direction is equal in length to
21
  is equal in length to \code{asp} \eqn{\times}{*} one data unit in the
22
  \code{asp} \eqn{\times}{*} one data unit in the y direction.
22
  y direction.
-
 
23
 
23
 
24
  The special case \code{asp == 1} produces plots where distances
24
  The special case \code{asp == 1} produces plots where distances
25
  between points are represented accurately on screen.  Values
25
  between points are represented accurately on screen.  Values with
26
  with \code{asp > 1} can be used to produce more accurate maps when
26
  \code{asp > 1} can be used to produce more accurate maps when using
27
  using latitude and longitude.
27
  latitude and longitude.
28
 
28
 
29
  Usually, one should rather use the higher level functions such as
29
  Usually, one should rather use the higher level functions such as
30
  \code{\link{plot}}, \code{\link{hist}}, \code{\link{image}}, \dots,
30
  \code{\link{plot}}, \code{\link{hist}}, \code{\link{image}}, \dots,
31
  instead and refer to their help pages for explanation of the arguments.
31
  instead and refer to their help pages for explanation of the
-
 
32
  arguments.
-
 
33
}
-
 
34
\seealso{
-
 
35
  \code{\link{xy.coords}},
-
 
36
  \code{\link{plot.xy}},
-
 
37
  \code{\link{plot.default}}.
32
}
38
}
33
\seealso{\code{\link{xy.coords}}, \code{\link{plot.xy}}, \code{\link{plot.default}}.}
-
 
34
\examples{
39
\examples{
35
##--- An example for the use of  `asp' :
40
##--- An example for the use of  `asp' :
36
library(mva)
41
library(mva)
37
data(eurodist)
42
data(eurodist)
38
loc <- cmdscale(eurodist)
43
loc <- cmdscale(eurodist)