Skip to content

Incomplete violin chart representation

3 messages · Kevin E. Thorpe, Mahmood Naderan-Tahan

#
Hi

I use the following command to create a violin chart


p <- ggplot(mydata, aes(x=BENCH, y=V))

+ geom_violin(trim=FALSE)

+ geom_dotplot(binaxis='y', stackdir='center', dotsize=0.6)

+ scale_y_continuous(trans = scales::pseudo_log_trans(base = exp(1)))


However, in the output one of them are shown in dots only which is weird https://pasteboard.co/K2KeMZL.png

Any idea about that?



Regards,
Mahmood
#
My guess would be there are only 2 observations contributing to that third plot, which is probably not enough to show anything else.
#
Yes it seems that it need more than 2 points to create the shape.

Thanks


Regards,
Mahmood