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. with regards Knut Krueger
If number is the number of points, I guess you can write plot(...., lwd=number) ________________________________ Fra: r-help-bounces at stat.math.ethz.ch 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.jpg The point size should represent the number of data at this point. with regards Knut Krueger ______________________________________________ R-help at stat.math.ethz.ch mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html
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
Marc Schwartz (via MN)
2006-Feb-17 16:52 UTC
[R] showing the integrated number by point size
On Fri, 2006-02-17 at 17:33 +0100, 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. > > with regards > Knut KruegerThere are a couple of functions in CRAN packages I believe that will do bubble plots. You might want to do: RSiteSearch("Bubble Plot") which should help. A better option from a visualization perspective would be ?sunflowerplot HTH, Marc Schwartz
Marc Schwartz (via MN) schrieb:>On Fri, 2006-02-17 at 17:33 +0100, 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. >> >>with regards >>Knut Krueger >> >> > >There are a couple of functions in CRAN packages I believe that will do >bubble plots. >To know the name of the function is always the problem before i am albe to seachr for :-(> >You might want to do: > > RSiteSearch("Bubble Plot") >found the solution , thx> >which should help. > >A better option from a visualization perspective would be > > ?sunflowerplot > >Maybe, but I was told to search for bubbles. I will suggest the sunflowerplots. Thank you very much Knut Krueger