I have some struggles to realise 2 boxplot with the ggboxplot function.
I would like to have this kind of boxplots :
So I tried with this :
p <- ggboxplot(Base_donnees_finale, x = "N2O_agricole_MilliersTECO2", y ="Tonne équivalent CO2 à l'ha cultivable")
p + stat_compare_means()
But as a result I have the same boxplots than before even if I use different variables !!!
I just don't know where to put the two variables to make my boxplots.
My data base is called "Base_de_donnee_finale" and my two variables are "N2O_agricole_MilliersTECO2" and "CH4_agricole_MilliersTECO2" and to have a wilcoxon test in it.
Does someone knows how to make the right syntax ?