making annotations on graph window

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

making annotations on graph window

Felipe Carrillo
Hello all:
Is it possible to make annotations such as the
summary(sd,mean,min,max)programmatically on the graph window?

Felipe D. Carrillo
  Fishery Biologist
  US Fish & Wildlife Service
  California, USA



      ____________________________________________________________________________________
Never miss a thing.  Make Yahoo your home page.

______________________________________________
[hidden email] 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.
Reply | Threaded
Open this post in threaded view
|

Re: making annotations on graph window

Gabor Grothendieck
Try:

plot(Sepal.Length ~ Sepal.Width, iris)
legend("topleft", capture.output(summary(iris[1:2])), cex = 0.7)


On Nov 30, 2007 10:16 AM, Felipe Carrillo <[hidden email]> wrote:

> Hello all:
> Is it possible to make annotations such as the
> summary(sd,mean,min,max)programmatically on the graph window?
>
> Felipe D. Carrillo
>  Fishery Biologist
>  US Fish & Wildlife Service
>  California, USA
>
>
>
>      ____________________________________________________________________________________
> Never miss a thing.  Make Yahoo your home page.
>
> ______________________________________________
> [hidden email] 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.
>

______________________________________________
[hidden email] 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.
Reply | Threaded
Open this post in threaded view
|

Re: making annotations on graph window

John Kane-2
In reply to this post by Felipe Carrillo
I am not sure I understand what you mean by
programatically but does this example help at all?

aa <- 1:10
plot(aa)
mmean <- 5
sdd <- .25
text(c(2,3),6, labels=c( "mean", "sd"))
text(c(2,3),5.5, labels=c(mmean, sdd))


--- Felipe Carrillo <[hidden email]> wrote:

> Hello all:
> Is it possible to make annotations such as the
> summary(sd,mean,min,max)programmatically on the
> graph window?
>
> Felipe D. Carrillo
>   Fishery Biologist
>   US Fish & Wildlife Service
>   California, USA
>
>
>
>      
>
____________________________________________________________________________________

> Never miss a thing.  Make Yahoo your home page.
>
> ______________________________________________
> [hidden email] 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.
>

______________________________________________
[hidden email] 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.