Description Usage Arguments Value Examples
Quick plot + contrast hypothesis test to compare two populations
1  | gghistogram(data, col = "black", lab = "x", density = F, shade = 0)
 | 
numeric1 | 
 a numeric vector of group 1  | 
numeric2 | 
 a numeric vector of group 2  | 
method | 
 string, either t.student (parametric) or wilcox.test (nonparametric)  | 
title | 
 string with the name of the plot  | 
wantpoints | 
 Logical FALSE/TRUE to determine whether points will be overplotted  | 
wantviolin | 
 Logical FALSE/TRUE to determine whether you want a violine plot in the background  | 
The | 
 colors of the two groups. Default c("darkorchid4","aquamarine4")  | 
Prints a plot with the given test p-value. If title is provided, it prints into a pdf.
1 2 3  | 
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.