Yes it seems that it need more than 2 points to create the shape. Thanks
Regards, Mahmood ________________________________ From: Kevin Thorpe <kevin.tho...@utoronto.ca> Sent: Thursday, May 20, 2021 1:38:32 PM To: Mahmood Naderan-Tahan Cc: R Help Mailing List Subject: Re: [R] Incomplete violin chart representation My guess would be there are only 2 observations contributing to that third plot, which is probably not enough to show anything else. -- Kevin E. Thorpe Head of Biostatistics, Applied Health Research Centre (AHRC) Li Ka Shing Knowledge Institute of St. Michael's Assistant Professor, Dalla Lana School of Public Health University of Toronto email: kevin.tho...@utoronto.ca Tel: 416.864.5776 Fax: 416.864.3016 > On May 20, 2021, at 5:21 AM, Mahmood Naderan-Tahan <mahmood.nade...@ugent.be> > wrote: > > EXTERNAL EMAIL: > > 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 > > [[alternative HTML version deleted]] > > ______________________________________________ > R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see > https://stat.ethz.ch/mailman/listinfo/r-help > PLEASE do read the posting guide http://www.R-project.org/posting-guide.html > and provide commented, minimal, self-contained, reproducible code. [[alternative HTML version deleted]] ______________________________________________ R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code.