plotFPWM: A function to plot the Forked Position Weight Matrix

Description Usage Arguments Value Examples

View source: R/plotFPWM.R

Description

This function plots FPWMs.

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
plotFPWM(
  FPWM,
  Methylation = TRUE,
  height = 12,
  width = 7,
  textSize = 7,
  scaleBarplot = TRUE,
  legend = c(0.5, 0.95),
  pdfName = "plotFPWM.pdf"
)

Arguments

FPWM

[FPWM S4 object].

Methylation

[logical] If it set on TRUE, methylation level will be drawn as barplot. Default: TRUE.

height

[numeric] Height (inches) of the pdf output. Default: 12.

width

[numeric] Width (inches) of the pdf output. Default: 7.

textSize

[numeric] Size of the text on the plot. Default: 7.

scaleBarplot

[logical] TRUE to scale the height of the barplot across all the forked motifs. FALSE will scale per-motif. Default: TRUE.

legend

[numeric Vector] Coordinates where the methylation legend will be drawn. Write "none" to prevent the function from ploting the legend. Default: c(0.5,0.95)

pdfName

[character] Name for the output pdf.

Value

Plots the FPWM into a PDF file.

Examples

1
2
fpwm <- createFPWM(mainTF ="CEBPB",partners = c("ATF4","ATF7","ATF3","JUND","FOS","CEBPD"), cell = "K562", forkPosition = 5)
plotFPWM(fpwm, pdfName="fpwm_plot.pdf")

rtmag/forkedTF documentation built on Nov. 5, 2021, 10 a.m.