[R] Creating vegetation distance groups from one column

Jhope jeanwaijang at gmail.com
Fri Oct 5 09:38:08 CEST 2012


Thank you! That has worked for me when creating graphs. In plyr I used the
script:

# Veg Index 
data.to.analyze$VegIndex <- cut(data.to.analyze$Veg,
      breaks=seq(0, 35, 5), include.lowest=TRUE)
VegIndex <- data.to.analyze$VegIndex
plot(VegIndex)

But the vegetation distances on the x-axis in the graph are showing up as: 
[-5,0] (0,5] (5,10] (10,15] (15,20] (20,25] (25,30] 

I am concerned these vegetation classes are not grouped probably and there
is overlap between the classes. It should read, preferably without brackets
or only one kind (): 
(-5-0) (1-5) (6-10) (11-15) (16-20) (21-25) (26-30)

How do I fix this?
Please advise, Jean



--
View this message in context: http://r.789695.n4.nabble.com/Creating-vegetation-distance-groups-from-one-column-tp4644970p4645127.html
Sent from the R help mailing list archive at Nabble.com.




More information about the R-help mailing list