View source: R/visualization.R
wide_to_long_soma | R Documentation |
reshape somascan table from wide to long
wide_to_long_soma( data, x = NULL, y = NULL, target = NULL, annotation = NULL, group_ids = NULL, rows_by = NULL, cols_by = NULL, sample_id = "SampleId", spaghetti = NULL, colspaghetti = NULL )
data |
tibble class object as sample X features. |
x |
x-axis value (def. aptamers). |
y |
y-axis value (def. rfu). |
target |
EntrezGeneSymbol or Aptamer SeqId. |
annotation |
Somascan Annotation Table. |
group_ids |
fill color of basic ggplot (aes) (def. NULL). |
rows_by |
facet_by row by feature (def. aptamers). |
cols_by |
facet_by col by feature (def. groups). |
spaghetti |
group samples by feature (allow spaghetti plot). |
colspaghetti |
color spaghetti line by feature (def. NULL). |
object tidy table long format
wide_to_long_soma(data=table, annotation=anno, target='CXCL10', x='time_idx', rows_by="aptamers", cols_by='groups', spaghetti='SUBJID')
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.