plotMultipleMotifs: Plot mulitple motifs in a single plot

Description Usage Arguments Details

View source: R/plot.R

Description

Individual motif logos are plotted on a rows x cols grid. This function is a convenience interface for the seqLogoGrid function that deals with viewpoint placement in a matrix-like grid layout.

Usage

1
2
3
4
  plotMultipleMotifs(pwms, titles = names(pwms),
    rows = ceiling(sqrt(length(pwms))),
    cols = ceiling(sqrt(length(pwms))),
    xmargin.scale = 0.4, ymargin.scale = 0.4, ...)

Arguments

pwms

a list of PWM objects or frequency matrices

titles

a characater vector of titles for each of the plots

rows

number of rows in the grid

cols

number or cols in the grid

xmargin.scale

the scaling parameter for the X-axis margin. Useful when plotting more than one logo on a page

ymargin.scale

the scaling parameter for the Y-axis margin. Useful when plotting more than one logo on a page

...

other parameters passed to seqLogoGrid()

Details

By default will try to make a square grid plot that would fit all the motifs and use list names as captions.


PWMEnrich documentation built on Nov. 1, 2018, 2:25 a.m.