I am setting up a scatter plot, and the size of the dots represents the number of samples the measurement was based.
There is a skewed distribution of the samples sizes for the values / dots.
Many have samples sizes from 10 to 50 and others are based on 500 or 1000 measurements.
I would like to change the legend in a way that the dot size for sample size 10 and 50 as well as 500 and 1000 is indicated.
Which setting would allow this?
gg.pf0<-ggplot(bc.pf,aes(x=age.WERT,y=weight,color=as.factor(bc.pf$Group),size=(bc.pf$n)))
(gg.pf1<-gg.pf0 + geom_point(aes(alpha=0.5)))