wide_to_long_soma: reshape somascan table from wide to long

View source: R/visualization.R

wide_to_long_somaR Documentation

reshape somascan table from wide to long

Description

reshape somascan table from wide to long

Usage

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
)

Arguments

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

Value

object tidy table long format

Examples

wide_to_long_soma(data=table,
annotation=anno, target='CXCL10',
x='time_idx', rows_by="aptamers",
cols_by='groups', spaghetti='SUBJID')

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