]> git.donarmstrong.com Git - r/CairoHacks.git/blob - man/start_rasterplot.Rd
use grid:: and Cairo::
[r/CairoHacks.git] / man / start_rasterplot.Rd
1 % Generated by roxygen2 (4.1.1): do not edit by hand
2 % Please edit documentation in R/raster_plots.R
3 \name{start_rasterplot}
4 \alias{start_rasterplot}
5 \title{start_rasterplot}
6 \usage{
7 start_rasterplot(width = NULL, height = NULL)
8 }
9 \arguments{
10 \item{width}{Width in pixels of raster image}
11
12 \item{height}{Height in pixels of raster image. In general only
13 one of \code{width} or \code{height} should be provided.}
14 }
15 \description{
16 Start a raster plot with indicated width or height in pixels
17 }
18 \details{
19 This creates a Cairo device with output to /dev/null of width or
20 height given (defaulting to a width of 1024)
21 }
22 \examples{
23 \dontrun{
24 ### plot a raster plot in a PDF
25 pdf()
26 start_rasterplot()
27 print(xyplot(y~x,
28      data=data.frame(y=rnorm(1E8),x=rnorm(1E8))))
29 stop_rasterplot()
30 dev.off()
31 }
32
33 ### plot a raster plot using grid.raster
34 start_rasterplot(width=100)
35 print(plot(y~x,
36             data=data.frame(y=rnorm(1E4),
37                             x=rnorm(1E4))))
38 raster.image <- stop_rasterplot(plot=FALSE)
39 grid::grid.raster(raster.image)
40 }
41 \author{
42 Don Armstrong
43 }
44