View source: R/ICS-Polyfunctionnality_piechart.R
Polyfunctionnality_piechart | R Documentation |
Piecharts for polyfunctionnality of ICS data
The complete cytokines must have this type of format : IFN-IL2+MIP1b-TNF+ in CD4
Polyfunctionnality_piechart(
data_ICS,
list_cytokines,
ID_name,
group_var,
group_value,
Timepoint_var,
Timepoint_value,
Stim_var,
Stim_value,
cellPop_type,
group_cyto = NULL,
title_piechart = NULL,
leg_piechart = TRUE,
pie_col = NULL,
ring_col = NULL
)
data_ICS |
Dataset to yse for plot. |
list_cytokines |
a vector with the cytokines avalaible in |
ID_name |
a character to give the colname of subject ID variable in |
group_var |
a character to give the colname of group variable in |
group_value |
a character to select one factor of |
Timepoint_var |
a character to give the colname of Time point in |
Timepoint_value |
a character to select one factor of |
Stim_var |
a character to give the colname of stimulation variable in |
Stim_value |
a character if you want to focus on one stimulation (in case of you have several stimulations in |
cellPop_type |
a character if you have differents populations for your cytokines. It must be present in the column names with cytokines. |
group_cyto |
a vector of numerics if you want to combine two numbers of cytokines (i.e. "c(2,3)" if you want to have a category with "2 and 3" cytokines together). Default is |
title_piechart |
a character with your title or |
leg_piechart |
a logical value. If |
pie_col |
a vector of colors for slices. Default is |
ring_col |
a vector of colors for rings. Default is |
a pie
object
Mélanie Huchon (adapted to Mélany Durand codes)
Polyfunctionnality_piechart(data_ICS = ICS_data,
list_cytokines = c("IFN", "IL2", "MIP1b", "TNF"), ID_name = "ID", group_var = "Arm",
group_value = "Arm1", Timepoint_var = "TP", Timepoint_value = "TP1", Stim_var = "Stim",
Stim_value = "BackgroundSubstracted", cellPop_type = "CD4", title_piechart = "Polyfunctionnality",
leg_piechart = TRUE)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.