| cormat | R Documentation |
Visualizes the parameter correlation (or covariance) matrix as a heatmap,
filling a gap left behind in translation from xpose4. Values come from
get_cov_matrix(), which has built-in support for nonmem and
nlmixr2 models; rendering is done with the generic xplot_heatmap()
template.
cormat(
xpdb,
type = c("correlation", "covariance"),
.problem = NULL,
.subprob = NULL,
.method = NULL,
drop_fixed = TRUE,
digits,
title,
subtitle = "Ofv: @ofv, Condition number: @condn",
caption = "@dir",
tag = NULL,
quiet,
...
)
xpdb |
< |
type |
< |
.problem |
< |
.subprob |
< |
.method |
< |
drop_fixed |
< |
digits |
Number of significant digits to display in cell labels. Defaults to |
title |
Plot title |
subtitle |
Plot subtitle |
caption |
Plot caption |
tag |
Plot tag |
quiet |
Silence extra debugging output |
... |
Additional aesthetics, passed to |
Only the upper triangle of the matrix is drawn, as it is symmetric.
Fixed-effect (theta) and random-effect (omega/sigma) parameters are
both included for nonmem models, when available and not fixed. For
nlmixr2 models, only fixed effects are included, as nlmixr2 does not
report uncertainty for random effects. See get_cov_matrix() for
further details on availability; if the covariance step was not run, or
did not complete successfully, an informative error is raised.
The desired plot
cormat(xpdb_x)
cormat(xpdb_x, type = "covariance")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.