View source: R/my_boxplot_and_jitter_func.R
my_boxplot_and_jitter_func | R Documentation |
This function makes a boxplot and jitter plot for animal comparisons. It needs at least two variable x, y to be plotted.
my_boxplot_and_jitter_func( dataset, xaxe = "Animal", yaxe, box_color = "Animal", scatt_color = box_color, faceted_by_1 = "Condition", faceted_by_2 = ".", jitter_width = 0.5, .alpha = 0.25, .dot_size = 2.5, base_font_size = 22, y_limits, compare_means = FALSE )
dataset |
A dataframe with raw data of waves. |
xaxe |
String. name of the variable in the x axis. |
yaxe |
String. name of the variable in the y axis. |
box_color |
String. Defining the color for whisker box. |
scatt_color |
String. Defining the color for scatter points. |
faceted_by_1 |
String. Define facet for plotting. |
faceted_by_2 |
String. Define facet for plotting. |
jitter_width |
Double. Define how big is the with of the scatter points. |
.alpha |
Double. Define transparency for your scatter points. |
.dot_size |
Double. Define the size of the scatter points. |
base_font_size |
A integer. Modify the size of the fonts. Default to 22. |
y_limits |
A double. Optional parameter to set the upper y limit to your plot. |
compare_means |
Logic. Shall the mean of the groups be compared? This perform non-paired test using the Wilcoxon-test. Default to FALSE. |
A ggplot object with boxplot + jitter scatter plot.
# The example is still missing...
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.