Shiny GUI to parameterize Visual Predictive Check (VPC)
vpcResultsUI.RdUse tidyvpc package to parameterize VPC from Shiny GUI and customize plot
using ggplot2. Code generation functionality allows you to reproduce tidyvpc
object and ggplot2 plot in your local R session via R script saved to your working
directory.
Usage
vpcResultsUI(
observed,
simulated,
ObsName = NULL,
vpc.type = c("continuous", "categorical"),
tagged = NULL,
settings = NULL,
...
)Arguments
- observed
Observed input data.
- simulated
Simulated input data.
- ObsName
Optional character value specifiying the name of the observed dependent variable (e.g., ObsName).
- vpc.type
Character value specifying type of VPC.
- tagged
A list of tagged VPC's or model diagnostics created from previous
Certara.VPCorCertara.ModelResultssession.- settings
A list of plot customization settings used in previous
Certara.VPCorCertara.ModelResultssession.- ...
Arguments for initiation from Pirana.
Value
If interactive(), returns a list of tagged diagnostics from the Shiny application, otherwise returns TRUE.
Examples
if (interactive()) {
vpcResultsUI(tidyvpc::obs_data, tidyvpc::sim_data)
}