| plotCoords {playwith} | R Documentation |
Given a call to a plot function, return the data coordinates.
plotCoords(name, call, envir, ...) ## Default S3 method: plotCoords(name, call, envir, panel.args, data, ...) ## S3 method for class 'qqnorm': plotCoords(name, call, envir, ...) ## S3 method for class 'qqplot': plotCoords(name, call, envir, ...) ## S3 method for class 'qqmath': plotCoords(name, call, envir, panel.args, ...) ## S3 method for class 'cloud': plotCoords(name, call, envir, panel.args, ...)
name |
The class of this object is the name of the plot function. Hence methods can be defined for different plot functions. |
call |
the plot call. |
envir |
environment containing objects referenced by the call. Call arguments should be evaluated in this environment. |
panel.args |
passed to Lattice plots only: panel arguments for the relevant panel. |
data |
passed to non-Lattice plots only: a "data" argument, or NULL,
to be used in evaluating call arguments (in addition to envir). |
... |
ignored. |
None yet...
a list with components:
x, y |
data point coordinates (in native panel / user coordinates). |
subscripts |
(optional) data point subscripts. |
Felix Andrews felix@nfrac.org
## Note, these are not designed to be called directly;
## they are used internally in playwith().
## But for demonstration purposes:
pargs <- trellis.panelArgs(qqmath(rnorm(20)), packet = 1)
plotCoords(structure("qqmath", class = "qqmath"),
call = quote(qqmath(rnorm(20))), envir = new.env(),
panel.args = pargs)