plot_rel | R Documentation |
Relative data is plotted as boxplot or box-jitter-plot combination. If Significances should be illustrated multiple plots are generated. Each Factor2 control Factor2 treatment combination will produce a plot.
plot_rel(
root_norm,
label_delim = ";",
control = 20,
type = "jitter",
size_jitter_dot = 2,
plot_colours,
plot_title,
size_plot_title = 14,
y_label = "hypocotyl growth [%]",
x_label = "",
legend_label = "Label",
size_legend_title = 12,
size_legend_text = 10,
width_lines = 0.5,
width_axis = 0.5,
size_x_axes = 9,
size_y_axes = 9,
plot_significance = F,
height_letter = 10,
size_letter = 5,
angle_letter = 0
)
root_norm |
data.frame; LengthMM normalized output from Rootdetection containing NO 10mm values |
label_delim |
character; define how Factor1 and Factor2 are seperated in Label |
control |
string; name of the Factor2 control condition |
type |
string; "box" = will produce Boxplot, 'jitter' = will produce combination of box and jitter plot, 'violin' = will produce violin plot |
size_jitter_dot |
number; defines the size of the dots in jitter plots |
plot_colours |
vector; provide colours for the boxplot - colour vector must have the same length than Factor1 |
plot_title |
string; defines the plot title |
size_plot_title |
numeric; defines size of the plot title |
y_label |
string; axes description of y-axes |
x_label |
string; axes description of x-axes |
legend_label |
string; title of legend |
size_legend_title |
numeric; defines size of legend title |
size_legend_text |
numeric; defines size of legend text |
width_lines |
numeric; defines the line width of boxes or violins |
width_axis |
numeric; defines the line width of the axis |
size_x_axes |
numeric; defines size of x-axes labels |
size_y_axes |
numeric; defines size of y-axes labels |
plot_significance |
logical; if TRUE significances will be drawn as letters |
height_letter |
numeric; defines the position of the significance letters |
size_letter |
numeric; defines size of the significance letters |
angle_letter |
numeric, defines angle of significance letters |
plot or list of plots; box or box-jitter-plot of relative data, if significance = T and multiple Factor2 treatments a list of boxplots will be generated
# Plot without significance
root_test_norm <- norm_10mm_standard(root_output)
# boxplot
plot_rel(root_test_norm, plot_significance = FALSE, control = "20", type = "box")
# jitterplot
plot_rel(root_test_norm, plot_significance = FALSE, control = "20", type = "jitter")
# Plot with siginficance letters
root_test_norm <- norm_10mm_standard(root_output)
# boxplot with statistics
plot_rel(root_test_norm, plot_significance = TRUE, control = "20", type = "box")
# all customizable plotting parameters have a default value
plot_rel(root_test_norm,
label_delim = ";",
control = 20,
type = "jitter",
plot_colours = c("blue", "red", "orange", "green"),
y_label = "% growth",
x_label = "",
legend_label = "Label",
size_legend_title = 12,
size_legend_text = 10,
size_x_axes = 9,
size_y_axes = 9,
plot_significance = TRUE,
height_letter = 10,
size_letter = 5,
angle_letter = 0
)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.