]> git.donarmstrong.com Git - r/CairoHacks.git/commitdiff
return invisible
authorDon Armstrong <don@donarmstrong.com>
Mon, 1 Aug 2016 22:44:18 +0000 (17:44 -0500)
committerDon Armstrong <don@donarmstrong.com>
Mon, 1 Aug 2016 22:44:18 +0000 (17:44 -0500)
R/raster_plots.R

index 87c19cc260b61acae0bfc6182863c5fba7440347..63ed43ac787eb9f91f6281ad02ed793ebefbd11f 100644 (file)
@@ -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
 ##'