The following code, plots a violin chart with weights associated with the values. The question is, why only one dot is shown? The top is 218*1=218, so a dot at 218 is shown and it is fine. However, for the second and third, it is expected to see two dots at 218*0.1=21.8 and 30*0.9=27.
> library(ggplot2)
> mydata <- read.csv('test.csv', header=T,row.names=1)
> mydata
V1 V2 V3
P1.K1 218 1.0 R
P2.K1 218 0.1 R
P2.K2 30 0.9 R
> p <- ggplot(mydata, aes(x=V3, y=V1, weight=V2)) + geom_violin(trim=FALSE)
> p + geom_dotplot(binaxis='y', stackdir='center', dotsize=1)
`stat_bindot()` using `bins = 30`. Pick better value with `binwidth`.
>
Any idea about that?



