plotMotifLogoA: plot sequence logo without plot.new

View source: R/plotMotifLogo.R

plotMotifLogoAR Documentation

plot sequence logo without plot.new

Description

plot amino acid or DNA sequence logo in a given canvas

Usage

plotMotifLogoA(
  pfm,
  font = "sans",
  fontface = "bold",
  ic.scale = TRUE,
  draw = TRUE
)

Arguments

pfm

an object of pfm

font

font of logo

fontface

fontface of logo

ic.scale

logical If TRUE, the height of each column is proportional to its information content. Otherwise, all columns have the same height.

draw

Vector (logical(1)). TRUE to plot. FALSE, return a gList

Value

none

Examples


pcm<-matrix(runif(40,0,100),nrow=4,ncol=10)
pfm<-pcm2pfm(pcm)
rownames(pfm)<-c("A","C","G","T")
motif <- new("pfm", mat=pfm, name="bin_SOLEXA")
plotMotifLogoA(motif)


jianhong/motifStack documentation built on Jan. 31, 2024, 5:03 a.m.