Skip to content

shading in line plots

11 messages · Heather Joan Lynch, Henric Nilsson, Rajarshi Guha +4 more

#
Hello,

I cannot figure out how to shade between two lines in a plot.  For
example, if I am trying to plot a confidence envelope and I would like to
shade the interior of the envelope grey.  Is this possible in R?

Thanks in advance.

Heather Lynch
#
Heather Joan Lynch said the following on 2005-04-28 16:14:
First, citing Simon `Yoda' Blomberg, "This is R. There is no if. Only how."

So, yes, this is possible. How? Try ?polygon.


HTH,
Henric
#
On Thu, 2005-04-28 at 10:14 -0400, Heather Joan Lynch wrote:
You might want to review some of the examples in ?polygon for some hints
on how to approach this. You might find the second one most applicable
here.

HTH,

Marc Schwartz
#
On Thu, 2005-04-28 at 17:01 +0200, Henric Nilsson wrote:
I hope this quote makes into the fortunes package :)


-------------------------------------------------------------------
Rajarshi Guha <rxg218 at psu.edu> <http://jijo.cjb.net>
GPG Fingerprint: 0CCA 8EE2 2EEB 25E2 AB04 06F7 1BB9 E634 9B87 56EE
-------------------------------------------------------------------
Breadth-first search is the bulldozer of science.
-- Randy Goebel
#
On Thu, 28 Apr 2005 12:22:51 -0400 Rajarshi Guha wrote:

            
You still have much to learn, my young apprentice ;-)

Only kidding, try
  fortune("Yoda")
in a recent version of the fortunes package.
Z
#
On Thu, 2005-04-28 at 18:33 +0200, Achim Zeileis wrote:
Shouldn't that be more like:

"Much to learn you have still, young apprentice mine"

;-)

Marc
#
On Thu, 28 Apr 2005 11:50:29 -0500 Marc Schwartz wrote:

            
Actually, there is a quote from Yoda in EP2 which is
  "Much to learn, you still have."

The quote I used above is from Qui-Gon Jinn towards Obi-Wan Kenobi in
EP1.

So much for useless trivia...:-)
Z
#
On Thu, 2005-04-28 at 19:02 +0200, Achim Zeileis wrote:
Sorry Master...  :-)

Marc
#
I wonder if anybody who gave the matter any thought would be surprised that
the R-Help list is populated by ubergeeks.
#
On Thu, 2005-04-28 at 13:53 -0400, Andy Bunn wrote:
Perhaps, but we all managed to miss Pi Day last month....
[1] 3.1415927


;-)

Marc