
Last chance! 50% off unlimited learning
Sale ends in
grid.move.to(x = 0, y = 0, default.units = "npc", name = NULL, draw = TRUE, vp = NULL)
moveToGrob(x = 0, y = 0, default.units = "npc", name = NULL, vp = NULL)
grid.line.to(x = 1, y = 1, default.units = "npc", arrow = NULL, name = NULL, gp = gpar(), draw = TRUE, vp = NULL)
lineToGrob(x = 1, y = 1, default.units = "npc", arrow = NULL, name = NULL, gp = gpar(), vp = NULL)
x
or y
are only given as numeric values.arrow
function.gpar
, typically the output
from a call to the function gpar
. This is basically
a list of graphical parameter settings.grid.move.to/line.to()
returns the value invisibly.
grid.move.to/line.to()
draws the move.to/line.to (and then only if draw
is TRUE
).
viewport
,
arrow
grid.newpage()
grid.move.to(0.5, 0.5)
grid.line.to(1, 1)
grid.line.to(0.5, 0)
pushViewport(viewport(x=0, y=0, w=0.25, h=0.25, just=c("left", "bottom")))
grid.rect()
grid.grill()
grid.line.to(0.5, 0.5)
popViewport()
Run the code above in your browser using DataLab