LeftRightPlot: plot two ggplot2 figures side by side

Description Usage Arguments Value Examples

View source: R/AlignmentPlots.R

Description

This method will plot 2 figures in a single plot space

Usage

1
LeftRightPlot(plotLeft, plotRight, ldim = 2, rdim = 2)

Arguments

plotLeft

is the left-hand plot

plotRight

is the right-hand plot

ldim

relative scaling for left plot (2)

rdim

relative scaling for right plot (2)

Value

a ggplot2 object

Examples

1
2
3
4
5
6
7
demoBam <- system.file("extdata",
    "cas9_FAK76554.bam",
    package = "nanopoRe")
bamSummary <- bamSummarise(demoBam, blockSize=1000L)
p1 <- plotAlignmentAccuracy()
p2 <- plotAlignmentIdentity()
LeftRightPlot(p1, p2)

sagrudd/nanopoRe documentation built on June 7, 2020, 10:20 p.m.