[R] grid package and lines
Deepayan Sarkar
deepayan at stat.wisc.edu
Wed Nov 27 20:54:21 CET 2002
On Wednesday 27 November 2002 05:27 am, Willemsen, Sten wrote:
> Hello list,
>
> When using the grid package in R 1.60 under windows grid.lines and
> grid.line.to seem not to use the coordinate system as defined by the
> current viewport whereas grin.points does. Am I doing something wrong?
?grid.points says:
Usage:
grid.points(x = unit(runif(10), "native"),
y = unit(runif(10), "native"),
pch = 1, size = unit(1, "char"),
default.units = "native",
^^^^^^^^
gp=gpar(), draw = TRUE, vp = NULL)
?grid.lines says:
Usage:
grid.lines(x = unit(c(0, 1), "npc", units.per.obs),
y = unit(c(0, 1), "npc", units.per.obs),
default.units = "npc", units.per.obs = FALSE,
^^^^^
gp=gpar(), draw = TRUE, vp = NULL)
Nothing you have said seems to contradict this. If you want grid.lines to use
the native coordinate system, use 'default.units = "native"'
Deepayan
-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html
Send "info", "help", or "[un]subscribe"
(in the "body", not the subject !) To: r-help-request at stat.math.ethz.ch
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._
More information about the R-help
mailing list