get_plot: Get plot object

Description Usage Arguments Value See Also Examples

View source: R/pmxClass.R

Description

Get plot object

Usage

1
get_plot(ctr, nplot, which_pages = "all")

Arguments

ctr

pmxClass controller object

nplot

character the plot name

which_pages

integer vector (can be length 1), set page number in case of multi pages plot, or character "all" to plot all pages.

Value

ggplot object

See Also

Other pmxclass: get_cats(), get_conts(), get_covariates(), get_data(), get_occ(), get_plot_config(), get_strats(), plot_names(), plots(), pmx_update(), set_data(), set_plot()

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
library(ggPMX)
ctr <- theophylline()
p1 <- ctr %>% get_plot("iwres_ipred")
## get all pages or some pages
p2 <- ctr %>% get_plot("individual")
## returns one page of individual plot
p2 <- ctr %>% get_plot("individual", which_pages = 1)
p3 <- ctr %>% get_plot("individual", which_pages = c(1, 3))
## get distribution plot
pdistri <- ctr %>% get_plot("eta_hist")

ggPMX documentation built on May 29, 2021, 5:06 p.m.