Description Usage Arguments Value
raincloud
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 | sp_raincloud(
data,
melted = TRUE,
xvariable = NULL,
yvariable = NULL,
metadata = NULL,
ID_var = c(),
coordinate_flip = TRUE,
position_nudge_flat_violin_x = 0.3,
position_nudge_flat_violin_y = 0,
position_nudge_flat_violin_alpha = 0.8,
palette_color = "Set2",
palette_fill = "Set2",
position_nudge_box_x = 0.25,
box_fill = "white",
legend.position = NULL,
extra_ggplot2_cmd = NULL,
x_label = NULL,
y_label = NULL,
title = NULL,
additional_theme = NULL,
debug = F,
...
)
|
data |
Data file (with header line, the first row is the colname, tab seperated. Multiple formats are allowed and described above) |
melted |
When TRUE, meaning a long format matrix is supplied to |
xvariable |
The column represents the x-axis values. For unmelted data, the program
will use first column as x-variable. If one want to use first row of unmelted data
as x-variable, please specify |
yvariable |
The column represents the digital values.
For unmelted data, the program
will use |
metadata |
Giving a metadata file with format specified in example to tell the group information for each sample. |
ID_var |
Other columns one want to treat as ID variable columns
except the one given to |
coordinate_flip |
Rotate the plot from vertical to horizontal. Usefull for plots with many values or very long labels at X-axis |
position_nudge_flat_violin_x |
The violin moves on the X-axis. Default 0.3. |
position_nudge_flat_violin_y |
The violin moves on the Y-axis. Default 0. |
position_nudge_flat_violin_alpha |
The violin transparency. |
palette_color |
The violin palette. |
palette_fill |
The point palette. |
position_nudge_box_x |
The box moves on the X-axis. Default 0.25. |
box_fill |
Box color. |
... |
Parametes given to |
A ggplot2 object
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.