# NOT RUN {
## adapted from example in \code{Cairo()}
openGraphCairo(fileName="normal_dist",type="pdf", fileDirectory=tempdir())
plot(rnorm(4000),rnorm(4000),col="#ff000018",pch=19,cex=2)
dev.off() # creates a file "normal_dist.pdf" in the directory specified in fileDirectory
file.remove(file.path(tempdir(),"normal_dist.pdf"))
# }
Run the code above in your browser using DataLab