plotMaxMCI {BioTIP} | R Documentation

## Plot the Maximized MCI per State

### Description

This function generates a line plot over multiple states with the maximum MCI score per state. The module size (i.e., number of network nodes) is specified at each state in parentheses.

### Usage

    plotMaxMCI(maxMCIms, MCIl, las = 0, order = NULL, states = NULL)

### Arguments

`maxMCIms` | A list of 2 elements. The 1st element is an integer vector of module ids whose names are the state names. The 2nd element is a list of character vectors per state. The vectors are network nodes (e.g. transcript ids). This parameter can be obtained by running function `getMaxMCImember`.
`MCIl` | A list of numeric vectors whose names are unique cluster ids. Each vector represents the MCI scores of modules in a state. This can be the second element of the output from the function `getMCI`.
`las` | Numeric in 0, 1, 2, 3; the style of axis labels. Default is 0, meaning labels are parallel. See `getMCI` for more detail.
`order` | A vector of state names in the customized order to be plotted, setting to NULL by default.
`states` | A character vector of state names that will be shown on the plot, setting to NULL by default. Assign this if you want to show all states, including states with no resulted modules. This parameter will overwrite the parameter 'order'.

### Value

Returns a line plot of maximum MCI scores across the states

### Author(s)

Zhezhen Wang zhezhen@uchicago.edu

### Examples

    maxMCIms = list(c(state1 = 1,  state2 = 2,  state3 = 1),
       c(list(state1 = c('g1', 'g2', 'g3'),
       state2 = c('g3', 'g5'),
       state3 = c('g2', 'g6'))))

    MCIl = list(state1=c('1' = 8.84, '2' = 6.4),
       state2 = c('1' =NA, '2' = 9.5, '3' = NA),
       state3 = c('1' = 2.3, '2' = 1.4))

    plotMaxMCI(maxMCIms, MCIl)

[Package BioTIP version 1.6.0 Index]