[R] How to add background color of a 2D chart by quadrant

From: tom soyer <tom.soyer_at_gmail.com>
Date: Mon, 07 Apr 2008 15:01:58 -0500


Hi,

I have a 2D chart that is divided into four quadrants, I, II, III, IV:

plot(1:10,ylim=c(0,10),xlim=c(0,10),type="n") abline(v=5,h=5)
text(x=c(7.5,7.5,2.5,2.5),y=c(2.5,7.5,7.5,2.5),labels=c("I","II","III","IV")) I would like to fill each quadrant with a background color unique to the
quadrant. Does anyone know how to do this in R?

Thanks,

-- 
Tom

	[[alternative HTML version deleted]]

______________________________________________
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.
Received on Mon 07 Apr 2008 - 20:05:39 GMT

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.2.0, at Wed 09 Apr 2008 - 14:30:28 GMT.

Mailing list information is available at https://stat.ethz.ch/mailman/listinfo/r-help. Please read the posting guide before posting to the list.

list of date sections of archive