Tudor Bodea
2007-Oct-30 18:22 UTC
[R] Place a string into the header/footer of a pdf file generated during a plot session
Dear useRs, Do you know, by any chance, if it is possible to write a string in the header/footer of a pdf file created during a plot session? To make sure that I know what R script generated a certain chart, I would like to add the path to the working directory into the header/footer of the corresponding pdf file. Thank you. Tudor -- Tudor Dan Bodea Georgia Institute of Technology School of Civil and Environmental Engineering Web: http://www.prism.gatech.edu/~gtg757i
Henrique Dallazuanna
2007-Oct-30 18:41 UTC
[R] Place a string into the header/footer of a pdf file generated during a plot session
Perhaps you can use mtext: plot(rnorm(100), col="red", pch=16) mtext(getwd(), side=1, line=3, outer=F, adj=0, cex=0.7) -- Henrique Dallazuanna Curitiba-Paraná-Brasil 25° 25' 40" S 49° 16' 22" O On 30/10/2007, Tudor Bodea <gtg757i@mail.gatech.edu> wrote:> > Dear useRs, > > Do you know, by any chance, if it is possible to write a string in the > header/footer of a pdf file created during a plot session? To make sure > that I > know what R script generated a certain chart, I would like to add the path > to > the working directory into the header/footer of the corresponding pdf > file. > > Thank you. > > Tudor > -- > Tudor Dan Bodea > Georgia Institute of Technology > School of Civil and Environmental Engineering > Web: http://www.prism.gatech.edu/~gtg757i > > ______________________________________________ > R-help@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. >[[alternative HTML version deleted]]