grid.locator()
in R 1.8.0. More support for
something like a grid.identify would be useful.
grid.[get/set/add/remove/edit]Grob()
functions for accessing grobs and their components by name;
can be quite general with use of grep
and
global
arguments.
(command-line only interface, but provides possible basis for GUI stuff).gridBase
package (requires R 1.8.0).
This provides support for mixing base and grid
output.
allDevices
argument
in grid.edit() et al aimed at serving this need.
grid.rect(y=.66, height=unit(1, "grobheight", grid.text("Hi There", y=.66, gp=gpar(cex=2)))) grid.rect(y=.33, height=unit(1, "grobheight", grid.text("Hi There", y=.33, gp=gpar(fontsize=24))))Fixed in development version.
library(grid) grid.newpage() grid.circle(gp=gpar(fill="yellow",col=NULL)) # Draws a yellow circle with no border, as it should. # But if you resize the graphics window, # the circle acquires a black border.