Dear all, How do stamp my graphs with date and time somewhere like left corner of the graph (not the plotting area). I know date() and Sys.time(), but where to? Thanks. Jun [[alternative HTML version deleted]]
On Apr 21, 2010, at 5:41 PM, Jun Shen wrote:> Dear all, > > How do stamp my graphs with date and time somewhere like left corner > of the > graph (not the plotting area). I know date() and Sys.time(), but > where to? > Thanks.?mtext> > Jun > > [[alternative HTML version deleted]] > > ______________________________________________ > 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.David Winsemius, MD West Hartford, CT
On 21/04/2010 5:41 PM, Jun Shen wrote:> Dear all, > > How do stamp my graphs with date and time somewhere like left corner of the > graph (not the plotting area). I know date() and Sys.time(), but where to? > Thanks.Use mtext() to put text onto a plot. For example, plot(1) mtext(Sys.time(), side=1, line=4, at=par("usr")[1]) (You will need to play with the side=, line= and at= specifications to get the location you want.) Duncan Murdoch