plot_bar: Plot the Original Copy number for Selected Loci

Description Usage Arguments Value Examples

View source: R/plot_bar.R

Description

To study some particular loci, this function count the number of samples containing certain number of loci in samples with and without WGD

Usage

1
plot_bar(data, g, loci, max)

Arguments

data

The CNV dataset (see load_data)

g

Inferred ploidy value (see )

loci

The particular loci to be emphasized

max

The max number of copies for all loci

Value

ggplot2 graph object

Examples

1
2
library(ggplot2)
p_bar<-plot_bar(wkdata,g_int,loci=c(3606,864,4858,5261,5570),max=7)

yun-feng/WGDAP documentation built on Nov. 5, 2019, 1:22 p.m.