plot_raincloud: generate raincloud plot aptamers inspired by...

View source: R/visualization.R

plot_raincloudR 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/

Description

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/

Usage

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
)

Arguments

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).

Value

gglot object

Examples

raincloud(data=table,
annotation=anno, target='CXCL10',
x='time_idx',  group_ids="ARM", x_rot=90,
spaghetti='SUBJID', stats=TRUE)

andreagrioni/ToolViz documentation built on Aug. 27, 2022, noon