My first naive attempt was to use scale_size_identity() which clearly
won't work since the unit of the point symbols is hard-coded to "mm"
in geom_point(). Inspired by this example, one could argue that
scale_size_identity() should perhaps switch to "native" units instead?
colour_identity, shape_identity are other examples where the actual
physical output is directly controlled; I think for size, native units
could be more intuitive/useful than "mm". What do you think?
Best,
baptiste
> --
> You received this message because you are subscribed to the ggplot2 mailing
> list.
> To post to this group, send email to ggp...@googlegroups.com
> To unsubscribe from this group, send email to
> ggplot2+u...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/ggplot2
The easiest way to draw a circle is to generate the coordinates
yourself and then use geom_polygon:
angle <- seq(-pi, pi, length = 50)
df <- data.frame(x = sin(angle), y = cos(angle))
qplot(x, y, data = df, geom = "polygon")
or
+ geom_polygon(aes(x, y), data = df, inherit.aes = F)
Hadley
--
Assistant Professor / Dobelman Family Junior Chair
Department of Statistics / Rice University
http://had.co.nz/