plot_MCI_Simulation {BioTIP}R Documentation

Simulation of Loci to Calculate the CI Score

Description

simulation of loci to calculate the Ic score.

Usage

plot_MCI_Simulation(MCI, simulation, las = 0, order = NULL,
  ylim = NULL, main = 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. Defualt is NULL.

Value

Return a line plot of MCI(red) and simulated MCI(grey) scores across all states

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)


[Package BioTIP version 1.0.0 Index]