[R] Controling the presentation of violin plot
drj|m|emon @end|ng |rom gm@||@com
Thu Apr 1 03:46:07 CEST 2021
As I don't know what "mydata" is, I'll have to fake it. Do you want
something like this?
On Thu, Apr 1, 2021 at 9:53 AM Mahmood Naderan-Tahan
<mahmood.naderan using ugent.be> wrote:
> 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?
> [[alternative HTML version deleted]]
> R-help using r-project.org mailing list -- To UNSUBSCRIBE and more, see
> PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
> and provide commented, minimal, self-contained, reproducible code.
More information about the R-help