Learn R Programming

sigminer (version 1.0.6)

show_cn_features: Show Copy Number Feature Distributions

Description

Show Copy Number Feature Distributions

Usage

show_cn_features(
  features,
  method = "Macintyre",
  rm_outlier = FALSE,
  ylab = NULL,
  log_segsize = TRUE,
  log_y = FALSE,
  return_plotlist = FALSE,
  base_size = 12,
  nrow = 2,
  align = "hv",
  ...
)

Arguments

features

a feature list generate from sig_tally function.

method

method for feature classfication, can be one of "Macintyre" ("M") and "Wang" ("W").

rm_outlier

default is FALSE, if TRUE, remove outliers. Only works when method is "Wang" ("W").

ylab

lab of y axis.

log_segsize

default is TRUE, show log10 based segsize, only works for input from "Macintyre" ("M") method.

log_y

logical, if TRUE, show log10 based y axis, only works for input from "Wang" ("W") method.

return_plotlist

if TRUE, return a list of ggplot objects but a combined plot.

base_size

overall font size.

nrow

(optional) Number of rows in the plot grid.

align

(optional) Specifies whether graphs in the grid should be horizontally ("h") or vertically ("v") aligned. Options are "none" (default), "hv" (align in both directions), "h", and "v".

...

other options pass to plot_grid function of cowplot package.

Value

a ggplot object

Examples

Run this code
# NOT RUN {
# Load copy number prepare object
load(system.file("extdata", "toy_copynumber_tally_M.RData",
  package = "sigminer", mustWork = TRUE
))
p <- show_cn_features(cn_tally_M$features)
p
# }

Run the code above in your browser using DataLab