The R Project SVN R

Rev

Rev 42333 | Rev 45585 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 42333 Rev 42608
Line 18... Line 18...
18
}
18
}
19
\arguments{
19
\arguments{
20
  \item{xlim, ylim}{numeric vectors of length 2, giving the x and y
20
  \item{xlim, ylim}{numeric vectors of length 2, giving the x and y
21
    coordinates ranges.}
21
    coordinates ranges.}
22
  \item{log}{character; indicating which axes should be in log scale.}
22
  \item{log}{character; indicating which axes should be in log scale.}
23
  \item{asp}{numeric, giving the \bold{asp}ect ratio y/x.}
23
  \item{asp}{numeric, giving the \bold{asp}ect ratio y/x, see below.}
24
  \item{\dots}{further graphical parameters as in \code{\link{par}}.
24
  \item{\dots}{further graphical parameters as in \code{\link{par}}.
25
    The relevant ones are \code{xaxs}, \code{yaxs} and \code{lab}.
25
    The relevant ones are \code{xaxs}, \code{yaxs} and \code{lab}.
26
  }
26
  }
27
}
27
}
28
\details{
28
\details{
-
 
29
  \describe{
-
 
30
    \item{asp:}{
29
  Note that if \code{asp} is a finite positive value then the window is
31
      If \code{asp} is a finite positive value then the window is
30
  set up so that one data unit in the x direction is equal in length to
32
      set up so that one data unit in the x direction is equal in length to
31
  \code{asp} \eqn{\times}{*} one data unit in the y direction.
33
      \code{asp} \eqn{\times}{*} one data unit in the y direction.
32
 
34
 
-
 
35
      Note that in this case, \code{\link{par}("usr")} is no longer
-
 
36
      determined by, e.g., \code{par("xaxs")}, but rather by \code{asp} and
-
 
37
      the device's aspect ratio. (See what happens if you interactively
-
 
38
      resize the plot device after running the example below!)
-
 
39
 
33
  The special case \code{asp == 1} produces plots where distances
40
      The special case \code{asp == 1} produces plots where distances
34
  between points are represented accurately on screen.  Values with
41
      between points are represented accurately on screen.  Values with
35
  \code{asp > 1} can be used to produce more accurate maps when using
42
      \code{asp > 1} can be used to produce more accurate maps when using
36
  latitude and longitude.
43
      latitude and longitude.
-
 
44
  }}
37
 
45
 
38
  To reverse an axis, use \code{xlim} or \code{ylim} of the form
46
  To reverse an axis, use \code{xlim} or \code{ylim} of the form
39
  \code{c(hi, lo)}.
47
  \code{c(hi, lo)}.
40
  
48
 
41
  The function attempts to produce a plausible set of scales if one or
49
  The function attempts to produce a plausible set of scales if one or
42
  both of \code{xlim} and \code{ylim} is of length one or the two values
50
  both of \code{xlim} and \code{ylim} is of length one or the two values
43
  given are identical, but it is better to avoid that case.
51
  given are identical, but it is better to avoid that case.
44
 
52
 
45
  Usually, one should rather use the higher level functions such as
53
  Usually, one should rather use the higher level functions such as