Re: [R] Bin Category Labels on Axis

2009-06-17 Thread jproville
David, It turns out that the 'at' argument takes the values 1,70,by=5, while the 'label' spans -36,33,by=5 Just took a little trial and error, but the graph now looks great. Cheers! Jeremy jproville wrote: > > Hi, > > I'd really appreciate if someone could give me some help or advice abo

Re: [R] Bin Category Labels on Axis

2009-06-17 Thread David Winsemius
On Jun 16, 2009, at 6:13 PM, jproville wrote: Thanks David! I had trouble understanding how to convert factors, and was playing around with as.numeric but it had never occurred to me to use a combination of both that and as.character. There's a FAQ on the topic. I am getting really clo

Re: [R] Bin Category Labels on Axis

2009-06-16 Thread jproville
Thanks David! I had trouble understanding how to convert factors, and was playing around with as.numeric but it had never occurred to me to use a combination of both that and as.character. I am getting really close to the graph I want - I've played around with the arguments however I am still hit

Re: [R] Bin Category Labels on Axis

2009-06-15 Thread David Winsemius
The canonical method of creating a numeric value from a factor is to wrap the factor in as.numeric(as.character( (.)) The as.character grabs the value from the factor levels rahter than giving you the internal codings and the as.numeic finishes the job. Set xaxt=FALSE in the plot arguments

[R] Bin Category Labels on Axis

2009-06-15 Thread jproville
Hi, I'd really appreciate if someone could give me some help or advice about this - I've tried everything I know and am clueless about how to proceed! I've written a script to import ASCII data of raster maps, bin them into categories, calculate the mean values within these bins and plot the tw