Re: [R] Controling the presentation of violin plot

2021-03-31 Thread Mahmood Naderan-Tahan
= exp(1)) > ) Yes that is a good hint. Thanks. Regards, Mahmood From: Rui Barradas Sent: Thursday, April 1, 2021 5:09:20 AM To: Mahmood Naderan-Tahan; r-help@r-project.org Subject: Re: [R] Controling the presentation of violin plot Hello, If the problem is

Re: [R] Controling the presentation of violin plot

2021-03-31 Thread Rui Barradas
Hello, If the problem is the dots sizes, why not reduce it? Below I have dotsize=0.5, half of yours. p + geom_dotplot(binaxis='y', stackdir='center', dotsize=0.5) Alternatively, plot the y axis in a log scale. Since there are zeros in the data, scales::pseudo_log_trans, will be used. p + g

Re: [R] Controling the presentation of violin plot

2021-03-31 Thread Jim Lemon
Hi Mahmood, As I don't know what "mydata" is, I'll have to fake it. Do you want something like this? yourdata<-data.frame(x1=c(1250,600,rep(200,9)), x2=c(7000,2300,800,rep(100,8)), x3=c(8900,950,300,rep(0,8)), x4=c(1400,1000,rep(600,4),rep(200,5))) library(plotrix) violin_plot(yourdata) Jim O