Re: [R] Plotting contour & filled.contour in one graph

From: Spencer Graves <spencer.graves_at_pdf.com>
Date: Mon 13 Feb 2006 - 04:20:11 EST

Hi Michael and Gabor:

GABOR: Prager's '4D' graph looks to me like superimposed contours of both z and zz vs. (x, y), where z is indicated by the colors and pale lines, while "black contour lines are values of zz" (as indicated by the labeling). I once wrote a crudely similar function to prepare contour plots showing any number of z variables vs. (x, y), with each z variable using different colors of contours and filling not with solid colors but with cross hatching at different angles. A reagion of acceptability satisfying multiple inequality constraints would appear as all white, i.e., with no cross hatching, in such a plot. (Unfortunately, I never found the time to get the function adequately dubugged and packaged so others could easily use it.)

MICHAEL: The "Addicted to R" web site with it's "R Graph Gallery" are pretty. Is a companion package downloadable from CRAN, or are they still looking for volunteers to create the necessary help files, etc.?

	  Best Wishes,
	  spencer graves

Gabor Grothendieck wrote:

> Could you walk us through, in detail, what that graph is showing?
> 
> 
> On 2/12/06, Michael Prager <Mike.Prager@noaa.gov> wrote:
> 

>>Besides the answers you already have, you might look at my "4D" graph
>>example (with code) on the R Graphics Gallery:
>>
>>http://addictedtor.free.fr/graphiques/RGraphGallery.php?graph=90
>>
>>I think it does exactly what you are asking, and therefore it might fit
>>your needs with only slight code modification.
>>
>>Mike Prager
>>
>>
>>Abd Rahman Kassim wrote on 2/12/2006 11:12 PM:
>>
>>>Dear All,
>>>
>>>I have a question on overlaying a filled.contour (e.g. on soil properties data) and contour (by elevation) in one graph. Both have the same z matrix dimension. I'm able to overlay both graph, but the plots dimension did not overlap well on the same plots. How can I have both filled.contour and contour on the same graph? The commands that I have written are as follows:
>>>
>>>filled.contour(0:15,0:10,t(matrix(Total.C,nrow=11,ncol=16)))
>>>contour(0:15,0:10,as.matrix(elev),add=T)
>>>
>>>Thanks for anay assistance.
>>>
>>>Regards.
>>>
>>>
>>>Abd Rahman Kassim
>>>Forest Research Institute Malaysia
>>>Kepong 52109
>>>Selangor, MALAYSIA
>>>
>>>*****************************************
>>>
>>>
>>>*****************************************
>>> [[alternative HTML version deleted]]
>>>
>>>______________________________________________
>>>R-help@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
>>>
>>
>>--
>>Michael H. Prager, Ph.D.
>>Population Dynamics Team
>>NOAA Center for Coastal Habitat and Fisheries Research
>>NMFS Southeast Fisheries Science Center
>>Beaufort, North Carolina 28516 USA
>>http://shrimp.ccfhrb.noaa.gov/~mprager/
>>
>>______________________________________________
>>R-help@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
>>
> 
> 
> ______________________________________________
> R-help@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

______________________________________________
R-help@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 Received on Mon Feb 13 04:22:22 2006

This archive was generated by hypermail 2.1.8 : Fri 03 Mar 2006 - 03:42:27 EST