[R] Suppressing internal grid in filled.contour

Jonathan Greenberg greenberg at ucdavis.edu
Wed Oct 29 19:40:08 CET 2008


Ok, I've placed the input files and the PDF on a website (I apologize 
for attaching the PDF -- the readme guide for this listserv indicated 
that PDFs were fine):

http://www.cstars.ucdavis.edu/~jongreen/temp/

The full suite of commands I used are:

tahoecontourdata<-read.csv("tahoedata02.csv",header=TRUE)
x=tahoecontourdata$Elevation_Bin
y=tahoecontourdata$PRR
z=tahoecontourdata$MaxStems
tahoelinedata<-read.csv("tahoelines02.csv",header=TRUE)
xline=tahoelinedata$Elevation
yline=tahoelinedata$PRR
filled.contour(interp(x,y,z,duplicate="strip",xo=seq(1800,3200,length=57),yo=seq(120,280,length=65)),col=grey.colors(33,start=0,end=1,gamma=1),nlevels=33,zlim=0:650,plot.axes={axis(1);axis(2);points(xline,yline,type="l")})

As you can see in the PDF, there is a faint internal grid that I can't 
seem to disable.

Thanks again!

--j

Dieter Menne wrote:
> Jonathan Greenberg <greenberg <at> ucdavis.edu> writes:
>  
>> ..faint internal grid when running the following command to make a 
>> filled contour plot of some data I have (x,y,z being the inputs):
>>
>>
> filled.contour(interp(x,y,z,duplicate="strip",
> xo=seq(1800,3200,length=57),
> yo=seq(120,280,length=65)),
> col=grey.colors(33,start=0,end=1,gamma=1),nlevels=33,zlim=0:650,
> plot.axes={axis(1);axis(2);points(xline,yline,type="l")})
>> 	The output is attached to this email via pdf -- I'm using R 2.8.0 on 
>> MacOS X.  Thanks for any help you all can give me!
>>
> 
> Please do not send attachments, most people cannot see this. Instead, better use
> self-running code, including simulated data. The above line does not run
> (probably because of bad formatting?)
> 
> For a similar case, check
> 
> http://finzi.psych.upenn.edu/R/Rhelp02a/archive/90744.html
> 
> Dieter
> 
> ______________________________________________
> 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.
> 

-- 

Jonathan A. Greenberg, PhD
Postdoctoral Scholar
Center for Spatial Technologies and Remote Sensing (CSTARS)
University of California, Davis
One Shields Avenue
The Barn, Room 250N
Davis, CA 95616
Cell: 415-794-5043
AIM: jgrn307, MSN: jgrn307 at hotmail.com, Gchat: jgrn307



More information about the R-help mailing list