Hi, How can I put text in a figure which is not parallel to the axes?such as along the line x=2y. It seems that the function 'text' does not have such parameters. thanks in advance Ma
I think if you look in the plotrix package you may find what you are looking for. If I remember it is in one of the vignettes or demos. Seems there might have been a Paul Murrell article in R-News that had an illustration of doing that as well. On Oct 6, 2009, at 11:42 PM, Ning Ma wrote:> Hi, > > How can I put text in a figure which is not parallel to the > axes?such > as along the line x=2y. > It seems that the function 'text' does not have such parameters. > > thanks in advance > > MaDavid Winsemius, MD Heritage Laboratories West Hartford, CT
On Oct 6, 2009, at 11:42 PM, Ning Ma wrote:> Hi, > > How can I put text in a figure which is not parallel to the > axes?such > as along the line x=2y. > It seems that the function 'text' does not have such parameters. >What about srt? plot(1,1) text(0.8,0.8, "text test", srt=45)> thanks in advance > > Ma > > ______________________________________________ > 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 Heritage Laboratories West Hartford, CT