# showing the integrated number by point size

5 messages
Open this post in threaded view
|

## showing the integrated number by point size

 Is there any function to show the points like this example of SPSS? http://biostatistic.de/temp/reg.jpgThe point size should represent the number of data at this point. with regards Knut Krueger ______________________________________________ [hidden email] mailing list https://stat.ethz.ch/mailman/listinfo/r-helpPLEASE do read the posting guide! http://www.R-project.org/posting-guide.html
Open this post in threaded view
|

## Re: showing the integrated number by point size

 If number is the number of points, I guess you can write plot(...., lwd=number) ________________________________ Fra: [hidden email] på vegne af Knut Krueger Sendt: fr 17-02-2006 17:33 Til: R-help Emne: [R] showing the integrated number by point size Is there any function to show the points like this example of SPSS? http://biostatistic.de/temp/reg.jpgThe point size should represent the number of data at this point. with regards Knut Krueger ______________________________________________ [hidden email] mailing list https://stat.ethz.ch/mailman/listinfo/r-helpPLEASE do read the posting guide! http://www.R-project.org/posting-guide.html______________________________________________ [hidden email] mailing list https://stat.ethz.ch/mailman/listinfo/r-helpPLEASE do read the posting guide! http://www.R-project.org/posting-guide.html
Open this post in threaded view
|

## Re: showing the integrated number by point size

 In reply to this post by Knut Krueger Knut Krueger wrote: > Is there any function to show the points like this example of SPSS? > > http://biostatistic.de/temp/reg.jpg> > The point size should represent the number of data at this point. > plot with cex for the size and pch for solid points:    xys=data.frame(x=c(0,0,1,2,2,3,3),y=c(0,1,1,1,2,2,3),s=c(4,1,2,1,1,1,2)) plot(xys\$x,xys\$y,cex=xys\$s,pch=19) or 'symbols', but you need to scale things a bit: symbols(xys\$x,xys\$y,circles=xys\$s/15,inches=F,bg="black") Of course if your data is just (x,y) pairs and you want to work out the counts then that's another problem... Barry ______________________________________________ [hidden email] mailing list https://stat.ethz.ch/mailman/listinfo/r-helpPLEASE do read the posting guide! http://www.R-project.org/posting-guide.html