autoplot_paired | R Documentation |
Automatised plot for paired data This is a wrapper function to set a plot with different parameters from ggplot for paired data.
autoplot_paired(
data,
timepoints,
group,
plot_type = "Mean_lines",
add_points = F,
add_lines = T,
add_individual_lines = F,
error_bar = "IC95",
stat = "param",
alpha_line = 0.5
)
data |
A dataframe with row corresponding to samples/patients and columns to variables. |
timepoints |
A character vector corresponding to the studied paired variables. |
group |
A character string corresponding to the comparative groups. |
plot_type |
Set the plot type (Boxplot, Barchart_mean or Barchart_count). |
add_points |
Add data points as a scatter plot to the graph. |
add_lines |
Add line to paired data |
add_individual_lines |
Add each individual (samples) lines to the plot. |
error_bar |
Type of error bar to be shown on the barcharts (IC95 or se or hide). |
stat |
Type of statistics to show (param, non_param or no). |
alpha_line |
Transparency of the paired lines |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.