plot_vpc: VPC plotting function

Description Usage Arguments See Also Examples

View source: R/plot_vpc.R

Description

This function performs no parsing of data, it just plots the already calculated statistics generated using one of the 'vpc' functions.

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
plot_vpc(
  db,
  show = NULL,
  vpc_theme = NULL,
  smooth = TRUE,
  log_x = FALSE,
  log_y = FALSE,
  xlab = NULL,
  ylab = NULL,
  title = NULL,
  verbose = FALSE
)

Arguments

db

object created using the 'vpc' function

show

what to show in VPC (obs_dv, obs_ci, pi, pi_as_area, pi_ci, obs_median, sim_median, sim_median_ci)

vpc_theme

theme to be used in VPC. Expects list of class vpc_theme created with function vpc_theme()

smooth

"smooth" the VPC (connect bin midpoints) or show bins as rectangular boxes. Default is TRUE.

log_x

Boolean indicting whether x-axis should be shown as logarithmic. Default is FALSE.

log_y

Boolean indicting whether y-axis should be shown as logarithmic. Default is FALSE.

xlab

label for x axis

ylab

label for y axis

title

title

verbose

verbosity (T/F)

See Also

sim_data, vpc_cens, vpc_tte, vpc_cat

Examples

1
2
3
4
5
## See vpc.ronkeizer.com for more documentation and examples

library(vpc)
vpc_db <- vpc(sim = simple_data$sim, obs = simple_data$obs, vpcdb = TRUE)
plot_vpc(vpc_db, title = "My new vpc", x = "Custom x label")

vpc documentation built on Jan. 16, 2021, 5:44 p.m.