get_plot: Get plot object

View source: R/pmxClass.R

get_plotR Documentation

Get plot object

Description

Get plot object

Usage

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


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, 2024, 1:40 a.m.