Java Mailing List Archive

http://www.r-help.com/

Home » R Help for Statistical Computing »

Re: [R] Placing a Shaded Box on a Plot

Greg Snow

2012-01-27

Replies: Find Java Web Hosting

Author LoginPost Reply
The locator() function can help you find coordinates of interest on an existing plot.

--
Gregory (Greg) L. Snow Ph.D.
Statistical Data Center
Intermountain Healthcare
greg.snow@(protected)
801.408.8111


> -----Original Message-----
> From: r-help-bounces@(protected)-
> project.org] On Behalf Of Stephanie Cooke
> Sent: Friday, January 27, 2012 1:03 AM
> To: r-help@(protected)
> Subject: [R] Placing a Shaded Box on a Plot
>
> Hello,
>
> I would like to place shaded boxes on different areas of a
> phylogenetic tree plot. Since I can not determine how to find axes on
> the phylogenetic tree plot I am not able to place the box over certain
> areas. Below is example code for the shaded box that I have tried to
> use, and the first four values specify the position.
>
> rect(110, 400, 135, 450, col="grey", border="transparent")
>
> Any suggestions on how to place a shaded box to highlight certain
> areas of a plot I would greatly appreciate.
>
> ______________________________________________
> R-help@(protected)
> 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.

______________________________________________
R-help@(protected)
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.
©2008 r-help.com - Jax Systems, LLC, U.S.A.