[R] Putting a text box in a plot

Gabor Grothendieck ggrothendieck at gmail.com
Mon Sep 21 12:52:38 CEST 2009


Try this:

plot(1:10)
A <- 1; B <- 2
legend("topleft", leg = paste(c("A", "B"), c(A, B), sep = "="))

or
RSiteSearch("text box")
RSiteSearch("text plot")

On Mon, Sep 21, 2009 at 5:42 AM, Sergey Goriatchev <sergeyg at gmail.com> wrote:
> Hello everyone,
>
> I have a plot and I want to but a (formatted) box containing text and
> numbers, say:
> Mean: 0.1
> St.Deviation: 1.1
> Skewness: 1.1
> Kurtosis: 0.5
>
> I know there is a way to do this, there is a function in some library,
> but it's been years since
> I used this function, and I do not remember where I found it.
> Could anyone help out?
>
> Thank you in advance!
> Sergey
>
> --
> Kniven skärpes bara mot stenen.
>
> ______________________________________________
> 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