vpc_cat: VPC with Categorical X

vpc_catR Documentation

VPC with Categorical X

Description

Generate categorical VPC plot

Usage

vpc_cat(
  sim.data = vpc$stats,
  obs.data = vpc$obs,
  obs.var = c("x", "y"),
  box.width = 0.1,
  bin.cat = "xbin",
  y.sim = c("y", "lo", "md", "hi", "qname"),
  xtit = "",
  ytit = "Concentration (ng/mL)",
  log.y = NULL,
  x.lab = c("Pre-dose", "1-h Post-dose")
)

Arguments

sim.data

Sim dataset resulted from vpc function in tidyvpc

obs.data

Obs dataset resulted from vpc function in tidyvp.Set it to null to omit the observed data

box.width

Width parameter for PI shaded area

x.lab

X axis label in characters, mandatory

Examples

vpc <- observed(obs, x=NTIMEN, y=DV) %>%
simulated (sim, y=DV)%>%
tidyvpc::stratify(~DOSE) %>%
binning(bin =NTIMEN)%>%
p<-vpcstats() + other ggplot functions such as facet_wrap/grid, etc.
vpc_cat(...)

leonpheng/lhplot documentation built on April 13, 2025, 1:48 p.m.