[R] Categorical bubble plot

Ben Bolker bbolker at gmail.com
Thu Apr 14 17:57:20 CEST 2011


Jurgens de Bruin <debruinjj <at> gmail.com> writes:

> 
> Hi,
> 
> I do not have much R experience just the basics, so please excuse
> any obvious questions.
> 
> I would like to create bubble plot that have Categorical data on the x and y
> axis and then the diameter if the bubble the value related to x and y.
>  Attached to the email is a pic of what I would like to do.
> 

  A reproducible example would be great.

something along the lines of

library(ggplot2)
ggplot(mydata,aes(x=drugclass,y=plant,colour=fitvalue,size=?))+geom_point()

  it's not clear from your description what determines the size.
  From a labeling point of view, switching x and y might be useful.



More information about the R-help mailing list