get_plot | R Documentation |
Get plot object
get_plot(ctr, nplot, which_pages = "all")
ctr |
|
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. |
ggplot object
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()
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")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.