vpcResultsUI: Shiny GUI to parameterize Visual Predictive Check (VPC)

View source: R/shinyVPC.R

vpcResultsUIR Documentation

Shiny GUI to parameterize Visual Predictive Check (VPC)

Description

Use 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.VPC or Certara.ModelResults session.

settings

A list of plot customization settings used in previous Certara.VPC or Certara.ModelResults session.

...

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)
}


Certara.VPCResults documentation built on Oct. 11, 2024, 1:09 a.m.