ACCLAB/dabestr

Help - How can I get my sinaplot looks like geom_violin()???

mgarci68 opened this issue · 0 comments

Hi, Thanks for providing this amazing package,

I'm trying to reproduce a prior plot that I Made with the previous version, but I'm unable to reproduce the violin graph (attached) in the plot function , unfortunately I could not find the last source code for the graph with the violins, you will see in the PICs what I did (second Pic) and what I currently have (first Pic).

I could change most of the graphic but couldn't add the violin.

Bellow you will find the code I'm using, I know the "Sinaplot.params = ggplot2::geom_violin()" is not working, also tried with GeomFlatViolin and geom_flat_violin but none of those are working.

`TM_AD_DBR <- Final_TM_regression_GP_ASIA_6_20_21

TM_VAC <-
TM_AD_DBR %>%
dabest(VASCAT,mRs,
idx = c("VAS NAC","VAS NAC - FV","VAS NAC - FU")
,paired = FALSE)

TM_VAC_meandiff <- mean_diff(TM_VAC)

TM_plot <-
TM_VAC_meandiff %>%
plot(palette= "Dark2",rawplot.ylim = c(0,6),effsize.ylim = c(-4,2),
effsize.ylabel = "Mean difference",tick.fontsize = 10 ,effsize.markersize = 5, axes.title.fontsize =10, sinaplot.params = ggplot2::geom_violin())`

TM_plot

Thanks in advance for your help.

image

vas_on_fv_fu_fn_VIO (1)