Learn R Programming

nonmem2R (version 0.2.5)

merge2GOF: Merging 2, 4, or 6 GOF's into one graph

Description

Merging multiple GOFs (ggplot objects) into one graph with caption added as reurned by get.caption. Any legend present in first GOF is added to the combined graph.

Usage

merge2GOF(p1, p2, byrow = TRUE)

merge4GOF(p1, p2, p3, p4)

merge6GOF(p1, p2, p3, p4, p5, p6)

Arguments

p1

first ggplot object

p2

second ggplot object

byrow

combine plots side by side (TRUE) or one above the other (FALSE)

p3

third ggplot object

p4

4th ggplot object

p5

5th ggplot object

p6

6th ggplot object