X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=R%2Fraster_plots.R;h=63ed43ac787eb9f91f6281ad02ed793ebefbd11f;hb=ce2ce7e638d919dea6ab23eb7b08a61ebd819bf6;hp=87c19cc260b61acae0bfc6182863c5fba7440347;hpb=e5bebf0ad92bc44a6a468ce99e691d3ffa7811b3;p=r%2FCairoHacks.git diff --git a/R/raster_plots.R b/R/raster_plots.R index 87c19cc..63ed43a 100644 --- a/R/raster_plots.R +++ b/R/raster_plots.R @@ -15,7 +15,7 @@ ##' ### plot a raster plot in a PDF ##' pdf() ##' start_rasterplot() -##' print(xyplot(y~x, +##' print(plot(y~x, ##' data=data.frame(y=rnorm(1E8),x=rnorm(1E8)))) ##' stop_rasterplot() ##' dev.off() @@ -51,7 +51,7 @@ start_rasterplot <- function(width=NULL,height=NULL) { } Cairo::Cairo(width=width,height=height,dpi=width/width.points*dpi,file="/dev/null") - NULL + invisible() } ##' Stops a raster plot and returns the results and optionally plots them ##'