orderHeatmapColumnsByCytokinePresence: Order COMPASSresult categories columns for cytokine of...

Description Usage Arguments Examples

View source: R/OrderHeatmapColumnsForCytokine.R

Description

This function rearranges the mean_gamma and categories matrices so that subsets containing the cytokine of interest appear on the right. The categories legend is rearranged such that the cytokine of interest is on the top row (so, top right cells will be shaded in). The other cytokines are also rearranged in a way to be as aesthetically plasing as possible. Or, specify your own cytokine order for the legend with cats_df_cytokine_order_override (doesn't override the cytokine-of-interest though).

Usage

1
2
3
orderHeatmapColumnsByCytokinePresence(cr, cytokine,
  cats_df_cytokine_order_override = NULL, threshold = 0.01,
  minimum_dof = 1, maximum_dof = Inf)

Arguments

cr

a COMPASSresult

cytokine

The cytokine of interest

cats_df_cytokine_order_override

Use this if you want to override the sorting of the categories matrix cytokine. Don't include "Counts".

Examples

1
2
3
4
5
6
7
8
## Not run: 
new_cr <- orderHeatmapColumnsByCytokinePresence(myCompassResult, "IFNg")
# Good for the fixed_column_order = T option from modified plot function
p <- print(plot(new_cr, order_by_max_functionality = F,
                fixed_column_order = T))
grid.draw(p)

## End(Not run)

seshadrilab/COMPASSHelpers documentation built on May 6, 2019, 6:04 p.m.