plot_dist: generate distribution plot aptamers

View source: R/visualization.R

plot_distR Documentation

generate distribution plot aptamers

Description

generate distribution plot aptamers

Usage

plot_dist(
  data,
  x = NULL,
  y = NULL,
  target = NULL,
  annotation = NULL,
  group_ids = NULL,
  rows_by = NULL,
  cols_by = NULL,
  sample_id = NULL,
  kind = "grid",
  title = "",
  x_lab = x,
  y_lab = y,
  x_rot = 90,
  debug = FALSE,
  scales_grid = "fixed",
  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.

rows_by

facet_by row by feature (def. aptamers).

cols_by

facet_by col by feature (def. groups).

kind

if split plot with facet_by (def. grid)

title

main plot title.

x_lab

x axis label.

y_lab

y axis label.

x_rot

rotation x axis label (def. 90).

debug

verbose level (bool).

scales_grid

Are scales shared across all facets (the default, "fixed"), or do they vary across rows ("free_x"), columns ("free_y"), or both rows and columns ("free")?

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

plot_dist(data=table,
annotation=anno, target='CXCL10',
x='time_idx', rows_by="aptamers",
cols_by='groups', kind="grid", x_rot=90,
scales_grid = 'free_y', spaghetti='SUBJID',
stats=TRUE)

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