plot_CM: Makes an interactive html plot from an enrichment table.

View source: R/All-functions.R

plot_CMR Documentation

Makes an interactive html plot from an enrichment table.

Description

Function to generate an interactive html plot from a transcription factor enrichment table, output of the function 'getCMstats'.

Usage

plot_CM(CM.statMatrix, plot_title = NULL, specialTF = NULL, TF_colors = NULL)

Arguments

CM.statMatrix

Output of the function 'getCMstats'. A data frame storing: Accession ID of every ChIP-Seq tested, Transcription Factor,Odds Ratio, p-value and adjusted p-value.

plot_title

The title for the plot.

specialTF

(Optional) Named vector of TF symbols -as written in the enrichment table- to be highlighted in the plot. The name of each element of the vector specifies its color group, i.e.: naming elements HIF1A and HIF1B as 'HIF' to represent them with the same color.

TF_colors

(Optional) Nolors to highlight TFs chosen in specialTF.

Value

plotly scatter plot.

Examples

data('Genes.Upreg',package = 'TFEA.ChIP')
CM_list_UP <- contingency_matrix( Genes.Upreg )
stats_mat_UP <- getCMstats( CM_list_UP )
plot_CM( stats_mat_UP )

LauraPS1/TFEA.ChIP documentation built on April 21, 2023, 7:29 a.m.