plot_a_pair_vectors_in_MA: MA-plot with coloring by group

Description Usage Arguments Value Author(s)

Description

MA-plot with coloring by group

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
plot_a_pair_vectors_in_MA(
  x1,
  x2,
  grp_id,
  x1name = deparse(substitute(x1)),
  x2name = deparse(substitute(x2)),
  log = TRUE,
  main,
  xlab,
  ylab,
  ...,
  legend_arg
)

Arguments

x1, x2

the first and second vectors to show

grp_id

a vector that has the group IDs of which each will be plotted in different color
- It should have same length as x1 and x2

x1name, x2name

the names of x1 and x2. These will be used in the labels of x-, y-axis

log

whether the MA should be computed in log-scale or not. If this is TRUE, 'x' coordinate is displayed in log scale

main

same as the ones for 'plot' generic function (refer par)

xlab

same as the ones for 'plot' generic function (refer par)

ylab

same as the ones for 'plot' generic function (refer par)

...

any arguments that pass to plot_a_pair_vectors

legend_arg

a list of parameters to be used in adding a legend. If grp_id is missing then no legend will be displayed.

Value

A plot is generated and a "list" of x- and y- coordinate limits is returned.

Author(s)

Mun-Gwan Hong <mun-gwan.hong@scilifelab.se>


Rundmus/BAf-R_package documentation built on May 18, 2020, 12:59 p.m.