[R] Plot graph with different symbol size

Abd Rahman Kassim
2006-03-03T22:35:46Z

Dear All,

  This is regarding symbols function. I'm preparing a graph for different
species in a plot (based on the coordinate x & y). I  used inches in symbol
function to indicate the different symbols size based on the size class (in
diameter of tree trunk). The problem is that the symbol size is arrange in
descending order. So the symbol for two species with different number of size
class will have the same symbol size for the largest of each species diameter
class (descending order). If the species A has 3 size class (e.g 10,20,30); and
another species B has 5 size class (10,20,30,40,50), the symbols size display is
the same for species A is the same as symbol size for species B for size class
30,40,50. How can I solve the problem?

  Example of my program code:
  ....
  dbhcat=cut(spdata$dbh,breaks=c(10,50,100,300,600,100000),labels=c(1,2,3,4,5))

symbols(spdata$gx,spdata$gy,dbhcat,inches=c(0.05,0.1,1.5,2.0,2.5,3.0),add=TRUE)
  ........

  Abd. Rahman Kassim, PhD
  Forest Management & Ecology Program
  Forestry & Conservation Division
  Forest Research Institute Malaysia
  Kepong 52109 Selangor
  Malaysia

  Fax: 603-62729852
  Tel: 603-62797179

*****************************************


*****************************************
	[[alternative HTML version deleted]]