]> git.donarmstrong.com Git - r/CairoHacks.git/blobdiff - R/raster_plots.R
use grid:: and Cairo::
[r/CairoHacks.git] / R / raster_plots.R
index 419c5de47a52951dc67bf2f90b9a081f3b268b88..87c19cc260b61acae0bfc6182863c5fba7440347 100644 (file)
@@ -27,7 +27,7 @@
 ##'             data=data.frame(y=rnorm(1E4),
 ##'                             x=rnorm(1E4))))
 ##' raster.image <- stop_rasterplot(plot=FALSE)
-##' grid.raster(raster.image)
+##' grid::grid.raster(raster.image)
 start_rasterplot <- function(width=NULL,height=NULL) {
     x.y.ratio <- grid::convertX(grid::unit(1,"npc"),"mm",valueOnly=TRUE)/
         grid::convertY(grid::unit(1,"npc"),"mm",valueOnly=TRUE)