Object of class matrix with rows representing the sequencing depth
(i.e. number of reads) and columns corresponding to each sample in the cohort
and elements of the matrix
colour
Character vector specifying colours to represent sequencing
depth.
plot_title
Character string specifying the title to display on the
plot.
x_title_size
Integer specifying the size of the x-axis title.
y_title_size
Integer specifying the size of the y-axis title.
facet_lab_size
Integer specifying the size of the faceted labels
plotted.
plotLayer
Valid ggplot2 layer to be added to the plot.
out
Character vector specifying the the object to output, one of
"data", "grob", or "plot", defaults to "plot" (see returns).
Value
One of the following, a list of dataframes containing data to be
plotted, a grob object, or a plot.
Examples
# Create data
x <- matrix(sample(100000,500), nrow=50, ncol=10, dimnames=list(0:49,paste0("Sample",1:10)))
# Call plot function
covBars(x)
Results
R version 3.3.1 (2016-06-21) -- "Bug in Your Hair"
Copyright (C) 2016 The R Foundation for Statistical Computing
Platform: x86_64-pc-linux-gnu (64-bit)
R is free software and comes with ABSOLUTELY NO WARRANTY.
You are welcome to redistribute it under certain conditions.
Type 'license()' or 'licence()' for distribution details.
R is a collaborative project with many contributors.
Type 'contributors()' for more information and
'citation()' on how to cite R or R packages in publications.
Type 'demo()' for some demos, 'help()' for on-line help, or
'help.start()' for an HTML browser interface to help.
Type 'q()' to quit R.
> library(GenVisR)
> png(filename="/home/ddbj/snapshot/RGM3/R_BC/result/GenVisR/covBars.Rd_%03d_medium.png", width=480, height=480)
> ### Name: covBars
> ### Title: Construct an overall coverage cohort plot
> ### Aliases: covBars
>
> ### ** Examples
>
> # Create data
> x <- matrix(sample(100000,500), nrow=50, ncol=10, dimnames=list(0:49,paste0("Sample",1:10)))
>
> # Call plot function
> covBars(x)
>
>
>
>
>
> dev.off()
null device
1
>