Is there an easy way to add a text into an R-plot and place it in the upper left corner? Like that: -------------------------------- | (a) | | | | | | | | | | | -------------------------------- The (a) should be at the borders of a box defined by the box()-command.
Dear Jörg, Perhaps, plot(1:10) legend("topleft",c("Your text here"),pch=1) See ?legend and ?text for more information. HTH, Jorge On Tue, Jul 29, 2008 at 6:04 PM, Jörg Groß <joerg@licht-malerei.de> wrote:> Is there an easy way to add a text into an R-plot and place it in the upper > left corner? > > Like that: > > > -------------------------------- > | (a) | > | | > | | > | | > | | > | | > -------------------------------- > > The (a) should be at the borders of a box defined by the box()-command. > > ______________________________________________ > 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]]
An embedded and charset-unspecified text was scrubbed... Name: nicht verf?gbar URL: <https://stat.ethz.ch/pipermail/r-help/attachments/20080730/c97fdb6a/attachment.pl>
On Wed, 2008-07-30 at 00:04 +0200, J?rg Gro? wrote:> Is there an easy way to add a text into an R-plot and place it in the > upper left corner? > > Like that: > > > -------------------------------- > | (a) | > | | > | | > | | > | | > | | > -------------------------------- > > The (a) should be at the borders of a box defined by the box()-command. >Hi Jorg, Maybe the corner.label function in plotrix will do what you want. Jim