View source: R/wave_layer_vio_ggplot_func.R
wave_layer_vio_ggplot_func | R Documentation |
Create a base canvas violin ggplot object. This function make single waves violin plot with the raw data that is, no aggregation on single waves for multiples cells. Note: this function is wrapped inside the final superplot function.
wave_layer_vio_ggplot_func( dataset, yaxe, xaxe = "Animal", faceted_by_1 = "Condition", faceted_by_2 = ".", y_limits, line_size = 1, trim = FALSE, scaled_to = "width", adjusted = 1 )
dataset |
A dataframe object. The dataset for analysis, eg wave kinetics or wave occurrence df. |
yaxe |
A string. The variable name of interest to plot. |
xaxe |
A string. The variable you want to compare with. Default to |
faceted_by_1 |
A string. Grouping variables for visualization. Default to |
faceted_by_2 |
A string. Aditional grouping variables for visualization. Default to |
y_limits |
A double. Optional paramter to set the upper y limit to your plot. |
line_size |
Integer. the size of the lines to display. Default to 1. |
trim |
Logic. shall the edges of the violin plots be cutted off?. Default to FALSE |
scaled_to |
Character string. If "area" (default), all violins have the same area (before trimming the tails). If "count", areas are scaled proportionally to the number of observations. If "width", all violins have the same maximum width. |
adjusted |
Double. A multiplicate bandwidth adjustment. This makes it possible to adjust the bandwidth while still using the a bandwidth estimator. For example, adjust = 1/2 means use half of the default bandwidth. |
A ggplot object with a violin plot canvas to add additional layers.
# the example is missing
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.