[R] qplot of ggplot package how to plot different size according to the values and not to the weights?

hadley wickham h.wickham at gmail.com
Fri Oct 27 16:51:55 CEST 2006


> here an example with the car data
> qplot(drat,wt,data=mtcars,shape=as.factor(carb),col=am,size=3)
>
> it gets a bit better if one takes away the as.factor (but that of course
> changes other things)

Thanks - that's definitely a bug.  I was summing the width of the
legends, instead of taking the maxium.  Will be fixed in the next
release.

Regards,

Hadley



More information about the R-help mailing list