View source: R/covariate-explore.R
cov_forest_plot | R Documentation |
Uses ggplot2
to take outputs from cov_forest_data()
and display a forest plot.
cov_forest_plot(d)
d |
A |
A ggplot2
forest plot.
cov_forest_data()
## requires NONMEM to be installed ## Not run: dcov <- input_data(m1, filter = TRUE) dcov <- dcov[!duplicated(dcov$ID), ] covariate_scenarios <- bind_rows( tibble(cov = "HEALTHGP", value = c(0, 1)), tibble(cov = "HEPATIC", value = unique(dcov$HEPATIC[dcov$HEPATIC > -99])), tibble(cov = "BWTIMP", value = c(50, 80, 120)), tibble(cov = "ECOG", value = c(0, 1, 2, 3)), tibble(cov = "BEGFRIMP", value = quantile(dcov$BEGFR[dcov$BEGFR > -99])), tibble(cov = "RACE", value = c(1, 2), text = c("white", "black")), tibble(cov = "PPI", value = c(0, 1)), tibble(cov = "H2RA", value = c(0, 1)) ) dplot <- cov_forest_data(m1, covariate_scenarios = covariate_scenarios) cov_forest_plot(dplot) ## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.