ggPMX (version 0.9.4)

get_plot: Get plot object

Description

Get plot object

Usage

get_plot(ctr, nplot, npage = NULL)

Arguments

ctr

pmxClass controller object

nplot

character the plot name

npage

integer or integer vector, set page number in case of multi pages plot

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

Run this code
# NOT RUN {
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",npage=1)
p3 <- ctr %>% get_plot("individual",npage=c(1,3))
## get distribution plot
pdistri <- ctr %>% get_plot("eta_hist")

# }

Run the code above in your browser using DataLab