[R] Controling the presentation of violin plot

Mahmood Naderan-Tahan m@hmood@n@der@n @end|ng |rom ugent@be
Thu Apr 1 00:49:40 CEST 2021


Hi,

With the following command, I get a messy violin plot which can be seen at https://pasteboard.co/JVdZKNz.jpg


p <- ggplot(mydata, aes(x=BE, y=INT)) + geom_violin(trim=FALSE)
p + geom_dotplot(binaxis='y', stackdir='center', dotsize=1)


It seems that the y-axis has a large scale and that causes the points to be shown with bad sizes.

Any way to fix that?



Regards,
Mahmood

	[[alternative HTML version deleted]]



More information about the R-help mailing list