geom_point (i.e., pointsGrob in grid package) draw symbols as characters.
And size aes is finally used for fontsize specification (see ?pointsGrob).
So it is hard to say the relation between size value and actual size
of symbols, but probably, in the case of circle symbol, the size
corresponds to the radius.
try this:
d <- data.frame(x=c(1,1,2,2),y=c(1,2,1,2),s=c(1,2,3,4)*10)
ggplot(d, aes(x,y,size=s)) + geom_point() + scale_size_identity() +
xlim(0,3) + ylim(0,3)
--
Kohske Takahashi <takahash...@gmail.com>
Research Center for Advanced Science and Technology,
The University of Tokyo, Japan.
http://www.fennel.rcast.u-tokyo.ac.jp/profilee_ktakahashi.html
> --
> You received this message because you are subscribed to the ggplot2 mailing
> list.
> Please provide a reproducible example: http://gist.github.com/270442
>
> To post: email ggp...@googlegroups.com
> To unsubscribe: email ggplot2+u...@googlegroups.com
> More options: http://groups.google.com/group/ggplot2
>
Yes, and if you want radius to be exactly proportional to value, you
need to make sure that both the limits and the size range includes
zero.
Hadley
--
Assistant Professor / Dobelman Family Junior Chair
Department of Statistics / Rice University
http://had.co.nz/