plot_overlapping: Plot overlapping between data and grouping factors

Description Usage Arguments Value Examples

View source: R/plot_overlapping.R

Description

Takes the output from overlapping_among_groups function and creates a heatmap with the overlapping between groups

Usage

1
plot_overlapping(overlapping_matrix, nmatrix, ntext, group, labelcex = 1)

Arguments

overlapping_matrix

The object obtained in overlapping_amoung_groups function

nmatrix

An interger from 1 to 3 indicating which matrix will be used to plot the overlapping, where: 1) A matrix with the number of overllaping data; 2) A matrix with the percentage of overlapping; 3) A matrix with the combination of the two previous one

ntext

An interger from 1 to 3 indicating which matrix will be used as the text matrix for the heatmap, where: 1) A matrix with the number of overllaping data; 2) A matrix with the percentage of overlapping; 3) A matrix with the combination of the two previous one

group

A vector with the size of groups. This vector will be plotted as row and column names in the heatmap

labelcex

A numeric value indicating the size of the row and column labels

Value

A heatmap with the overlapping between groups

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
data(QTLmarkers)
data(gtfGenes)
genes.out <- find_genes_qtls_around_markers(
db_file=gtfGenes, marker_file=QTLmarkers,
method="gene", marker="snp",interval=100000,
nThreads=1)

overlapping.out<-overlapping_among_groups(
file=genes.out,x="Reference",y="gene_id")
plot_overlapping(overlapping.out,
nmatrix=2,ntext=2,
group=unique(genes.out$Reference))

pablobio/GALLO documentation built on March 11, 2021, 2:59 p.m.