vpc_cat | R Documentation |
Generate categorical VPC plot
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")
)
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 |
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(...)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.