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
shading in line plots
11 messages · Heather Joan Lynch, Henric Nilsson, Rajarshi Guha +4 more
Heather Joan Lynch said the following on 2005-04-28 16:14:
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?
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:
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.
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:
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."
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:
On Thu, 2005-04-28 at 17:01 +0200, Henric Nilsson wrote:
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."
I hope this quote makes into the fortunes package :)
You still have much to learn, my young apprentice ;-)
Only kidding, try
fortune("Yoda")
in a recent version of the fortunes package.
Z
------------------------------------------------------------------- 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
______________________________________________ R-help at stat.math.ethz.ch mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html
On Thu, 2005-04-28 at 18:33 +0200, Achim Zeileis wrote:
On Thu, 28 Apr 2005 12:22:51 -0400 Rajarshi Guha wrote:
On Thu, 2005-04-28 at 17:01 +0200, Henric Nilsson wrote:
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."
I hope this quote makes into the fortunes package :)
You still have much to learn, my young apprentice ;-)
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:
On Thu, 2005-04-28 at 18:33 +0200, Achim Zeileis wrote:
On Thu, 28 Apr 2005 12:22:51 -0400 Rajarshi Guha wrote:
On Thu, 2005-04-28 at 17:01 +0200, Henric Nilsson wrote:
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."
I hope this quote makes into the fortunes package :)
You still have much to learn, my young apprentice ;-)
Shouldn't that be more like: "Much to learn you have still, young apprentice mine"
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
;-) Marc
Marc Schwartz wrote:
Shouldn't that be more like: "Much to learn you have still, young apprentice mine"
R offends my Jedi religious sensibilities by having a 'try' function. [see: http://www.starwars.com/databank/character/yoda/ about four paras from bottom] Baz PS 6 days to the big Jedi holiday!
On Thu, 2005-04-28 at 19:02 +0200, Achim Zeileis wrote:
On Thu, 28 Apr 2005 11:50:29 -0500 Marc Schwartz wrote:
On Thu, 2005-04-28 at 18:33 +0200, Achim Zeileis wrote:
On Thu, 28 Apr 2005 12:22:51 -0400 Rajarshi Guha wrote:
On Thu, 2005-04-28 at 17:01 +0200, Henric Nilsson wrote:
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."
I hope this quote makes into the fortunes package :)
You still have much to learn, my young apprentice ;-)
Shouldn't that be more like: "Much to learn you have still, young apprentice mine"
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
Sorry Master... :-) Marc
On Thu, 2005-04-28 at 13:53 -0400, Andy Bunn wrote:
PS 6 days to the big Jedi holiday!
I wonder if anybody who gave the matter any thought would be surprised that the R-Help list is populated by ubergeeks.
Perhaps, but we all managed to miss Pi Day last month....
Pi.Day <- as.POSIXct("2005-03-14 13:59:27")
Pi.Day <- as.numeric(gsub("0", "", format(Pi.Day, "%m.%d%I%M%S")))
print(Pi.Day, 8)
[1] 3.1415927 ;-) Marc