[R] graph paper look

baptiste auguie baptiste.auguie at googlemail.com
Thu Jan 19 02:32:34 CET 2012


You could draw a grid with grid, using grid.grill,

library(grid)

pdf("grid.pdf", width=21/2.54,height=29.7/2.54)
grid.grill(h = unit(seq(0, 297, by=1), "mm"),
           v = unit(seq(0, 210, by=1), "mm"), gp=gpar(col="grey",lwd=0.1))
grid.grill(h = unit(seq(0, 297, by=5), "mm"),
           v = unit(seq(0, 210, by=5), "mm"), gp=gpar(col="grey20",lwd=0.2))
grid.grill(h = unit(seq(0, 29.7, by=1), "cm"),
           v = unit(seq(0, 21, by=1), "cm"), gp=gpar(col="black",lwd=1))
dev.off()

HTH,

b.


On 19 January 2012 14:18, Erin Hodgess <erinm.hodgess at gmail.com> wrote:
> Dear R People:
>
> Short of doing a series of ablines, is there a way to produce "graph
> paper" in R please?
>
> Thanks,
> Erin
>
>
> --
> Erin Hodgess
> Associate Professor
> Department of Computer and Mathematical Sciences
> University of Houston - Downtown
> mailto: erinm.hodgess at gmail.com
>
> ______________________________________________
> R-help at r-project.org mailing list
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
> and provide commented, minimal, self-contained, reproducible code.



More information about the R-help mailing list