plotMultipleMotifs {PWMEnrich} | R Documentation

## Plot mulitple motifs in a single plot

### 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

      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.

[Package PWMEnrich version 4.22.0 Index]