plot_Ic_Simulation {BioTIP} | R Documentation |
generate a line plot of Ic score and simulated Ic scores.
plot_Ic_Simulation(Ic, simulation, las = 0, ylim = NULL, order = NULL, main = NULL)
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 |
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. |
Return a line plot of Ic(red) and simulated Ic(grey) scores across all states
Zhezhen Wang zhezhen@uchicago.edu
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)