View source: R/visualization.R
plot_dist | R Documentation |
generate distribution plot aptamers
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 )
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). |
gglot object
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)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.