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.
Hi, Maybe the textplot() function in the gplots package? HTH, baptiste 2009/9/21 Sergey Goriatchev <sergeyg at gmail.com>:> 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. >
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. >
On 09/21/2009 07:42 PM, Sergey Goriatchev 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 > >Hi Sergey, Maybe addtable2plot in the plotrix package will do what you want. Jim