plot_Ic_Simulation {BioTIP}R Documentation

line plot of Ic score and simulated Ic scores

Description

generate a line plot of Ic score and simulated Ic scores.

Usage

plot_Ic_Simulation(Ic, simulation, las = 0, ylim = NULL,
  order = NULL, main = NULL)

Arguments

Ic

A vector with names of states. If order is not assigned, then plot by the order of this vector.

simulation

A numeric matrix of Ic scores in which rows are states and columns are numbers of simulated times. It can be obtained from simulation_Ic

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)

ylim

An integer vector of length 2. Default is NULL.

order

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

main

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

Value

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

Author(s)

Zhezhen Wang zhezhen@uchicago.edu

Examples

sim = matrix(sample(1:10,9),3,3)
row.names(sim) = paste0('state',1:3)
Ic = c('state1' = 3.4,'state2' = 5.6,'state3' = 2)
plot_Ic_Simulation(Ic,sim)

[Package BioTIP version 1.0.0 Index]