Plot copy number distribution either by length or chromosome

cnv_plotDistributionProfile(data, rm_normal = TRUE, mode = c("ld",
  "cd"), fill = FALSE)

Arguments

data

a data.frame, result of cnv_getLengthFraction function.

rm_normal

logical. Whether removel normal copy (i.e. "segVal" equals 2), default is TRUE.

mode

either "ld" for distribution by CN length or "cd" for distribution by chromosome.

fill

when mode is "cd", if fill is TRUE, plot percentage instead of count.

Value

a ggplot object

Examples

# NOT RUN {
cnv_plotLengthSummary(data, mode = "cd")
# }