View source: R/visualization.R
plot_raincloud | R Documentation |
generate raincloud plot aptamers inspired by https://www.cedricscherer.com/2021/06/06/visualizing-distributions-with-raincloud-plots-and-how-to-create-them-with-ggplot2/
plot_raincloud( data, x = NULL, y = NULL, target = NULL, annotation = NULL, group_ids = NULL, title = "", x_lab = x, y_lab = y, x_rot = 90, spaghetti = NULL, colspaghetti = NULL, stats = FALSE )
data |
tibble class object as samplexfeatures. |
x |
x-axis value (def. aptamers). |
y |
y-axis value (def. rfu). |
target |
EntrezGeneSymbol or Aptamer SeqId. |
annotation |
Somascan Annotation Table. |
group_ids |
TODO. |
title |
main plot title. |
x_lab |
x axis label. |
y_lab |
y axis label. |
x_rot |
rotation x axis label (def. 90). |
spaghetti |
group samples by feature (allow spaghetti plot). |
colspaghetti |
color spaghetti line by feature (def. NULL). |
stats |
add stat_summary (median) (bool, def. FALSE). |
gglot object
raincloud(data=table, annotation=anno, target='CXCL10', x='time_idx', group_ids="ARM", x_rot=90, spaghetti='SUBJID', stats=TRUE)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.