plot_MCI_Simulation: Plot observed and simulated MCI Scores

View source: R/BioTIP_update_04202022.R

plot_MCI_SimulationR Documentation

Plot observed and simulated MCI Scores

Description

Box plots of observed (red) and simulated MCI scores by boostraping genes B times, with three horizontal lines: the min, max and 2*(max-min) value of the state of interests, or all all values.

Usage

plot_MCI_Simulation(
  MCI,
  simulation,
  las = 0,
  order = NULL,
  ylim = NULL,
  main = NULL,
  which2point = NULL,
  ...
)

Arguments

MCI

A named vector of max CI scores per state, can be obtained from function getMaxStats.

simulation

A matrix state * number of simulated times, can be obtained from function simulationMCI.

las

Numeric in 0, 1, 2, 3; the style of axis labels. Default is 0, meaning labels are parallel. (link to http://127.0.0.1:21580/library/graphics/html/par.html)

order

A vector of state names in the customized order to be plotted, set to NULL by default.

ylim

An integer vector of length 2. Default is NULL.

main

A character vector. The title of the plot. Default is NULL.

which2point

A character (or integer) which state's values were used to set up the three horizontal lines. by default is NULL, indicating the values of all states will be used.

...

Other parameters passed to this function

Value

Return a box plot of MCI(red) and simulated MCI(grey) scores per state.

Author(s)

Zhezhen Wang zhezhen@uchicago.edu

Examples

MCI = c(1:3); names(MCI) = c('a', 'b', 'c')
simMCI = matrix(sample(1:100, 9), 3, 3)
row.names(simMCI) = names(MCI)
plot_MCI_Simulation(MCI, simMCI)


xyang2uchicago/NPS documentation built on June 30, 2024, 10:15 p.m.