dataMngt_piechart: Function to manage data for the piecharts of...

View source: R/dataMngt_piechart.R

dataMngt_piechartR Documentation

Function to manage data for the piecharts of polyfunctionnality of ICS data

Description

The boolean cytokines must have this type of format : IFN-IL2-MIP1b-TNF+ in CD4

Usage

dataMngt_piechart(
  data,
  list_cyto,
  ID,
  group,
  group_val = NULL,
  Timepoint,
  Timepoint_val = NULL,
  Stim,
  Stim_val,
  pop_type,
  gp_cyto = NULL
)

Arguments

data
list_cyto
ID

a character to define the colnames of ID in data_ICS

group

a character to define the colnames of group in data_ICS (Arm)

group_val

default is NULL : no filter

Timepoint

a character to define the colnames of Time point in data_ICS

Timepoint_val

default is NULL : no filter

Stim

a character to define the colnames of stimulation in data_ICS

Stim_val
pop_type

a character to define the type of population (CD4 or CD8) (if your cytokines are for example : "IFN+IL2+MIP1B+ in CD4" in data)

gp_cyto

vector with the number of cytokines that you want to group (ex : c(2,3))

Value

a data.frame object

Author(s)

Mélanie Huchon

Examples


d <- dataMngt_piechart(data = ICS_data, list_cyto = c("IFN", "IL2", "MIP1b", "TNF"),
ID = "ID", group = "Arm", group_val = "Arm1", Timepoint = "TP", Timepoint_val = "TP1",
Stim = "Stim", Stim_val = "BackgroundSubstracted", pop_type = "CD4")

sistm/sistmr documentation built on March 8, 2024, 3:05 a.m.