The R Project SVN R

Rev

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

Rev 59039 Rev 61433
Line 14... Line 14...
14
\usage{
14
\usage{
15
grid.function(...)
15
grid.function(...)
16
functionGrob(f, n = 101, range = "x", units = "native",
16
functionGrob(f, n = 101, range = "x", units = "native",
17
             name = NULL, gp=gpar(), vp = NULL)
17
             name = NULL, gp=gpar(), vp = NULL)
18
 
18
 
19
grid.abline(intercept, slope, ...) 
19
grid.abline(intercept, slope, ...)
20
}
20
}
21
\arguments{
21
\arguments{
22
  \item{f}{ A function that must take a single argument
22
  \item{f}{ A function that must take a single argument
23
    and return a list with two numeric components named \code{x} and
23
    and return a list with two numeric components named \code{x} and
24
    \code{y}.}
24
    \code{y}.}
Line 40... Line 40...
40
\details{
40
\details{
41
  \code{n} values are generated and passed to the function \code{f}
41
  \code{n} values are generated and passed to the function \code{f}
42
  and a series of lines are
42
  and a series of lines are
43
  drawn through the resulting \code{x} and \code{y} values.
43
  drawn through the resulting \code{x} and \code{y} values.
44
 
44
 
45
  The generation of the \code{n} values depends on the value of 
45
  The generation of the \code{n} values depends on the value of
46
  \code{range}.  In the default case, \code{dim} is
46
  \code{range}.  In the default case, \code{dim} is
47
  \code{"x"}, which means that a set
47
  \code{"x"}, which means that a set
48
  of \code{x} values are generated covering the range of the current
48
  of \code{x} values are generated covering the range of the current
49
  viewport scale in the x-dimension.  If \code{dim} is \code{"y"}
49
  viewport scale in the x-dimension.  If \code{dim} is \code{"y"}
50
  then values are generated from the current y-scale instead.
50
  then values are generated from the current y-scale instead.