sp_raincloud: raincloud

Description Usage Arguments Value

Description

raincloud

Usage

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

Arguments

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 data. function will skip preprocess. Default FALSE.

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 variable here (which is an inner name). Or if one want to use other columns in metadata.

yvariable

The column represents the digital values. For unmelted data, the program will use value as y-variable (which is an inner name). This parameter can only be set when melted is TRUE.

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

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 sp_ggplot_layout

Value

A ggplot2 object


Tong-Chen/YSX documentation built on Jan. 25, 2021, 2:49 a.m.