plotIc: plot a line plot of Ic scores for each state.

Description Usage Arguments Value Author(s) Examples

View source: R/BioTIP_update_4_09282020_v3.R

Description

plot a line plot with Ic score for each state

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
plotIc(
  Ic,
  las = 0,
  order = NULL,
  ylab = "Ic",
  col = "black",
  main = NULL,
  add = FALSE,
  ylim = NULL,
  lty = 1:5,
  lwd = 1
)

Arguments

Ic

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

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, setting to NULL by default.

ylab

titles y axes, as in plot.

col

vector of colors. Colors are used cyclically.

main

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

add

logical. If TRUE, plots are added to current one. This is inherited from matplot.

ylim

An integer vector of length 2. Default is NULL.

lty

An vector of line types. This is also inherited from matplot.

lwd

Anineger of line widths. This is also inherited from matplot.

Value

Return a line plot of Ic score across states.

Author(s)

Zhezhen Wang zhezhen@uchicago.edu

Examples

1
2
Ic = c('state3' = 3.4,  'state1' = 5.6,  'state2' = 2)
plotIc(Ic, order = c('state1', 'state2', 'state3'))

BioTIP documentation built on Nov. 8, 2020, 6:27 p.m.