[R] Incomplete violin chart representation

Kevin Thorpe kev|n@thorpe @end|ng |rom utoronto@c@
Thu May 20 13:38:32 CEST 2021


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.thorpe using utoronto.ca  Tel: 416.864.5776  Fax: 416.864.3016

> On May 20, 2021, at 5:21 AM, Mahmood Naderan-Tahan <mahmood.naderan using 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 using 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.



More information about the R-help mailing list