From: Don Armstrong Date: Mon, 1 Aug 2016 22:44:18 +0000 (-0500) Subject: return invisible X-Git-Url: https://git.donarmstrong.com/?a=commitdiff_plain;h=b17c0e2672a535c89bac925f0dbebdcb30261333;p=r%2FCairoHacks.git return invisible --- 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 ##'