Skip to contents

Plot censoring data

Usage

plot_censoring_data(
  dataset,
  included_IDs = unique(dataset$pt_data$ID),
  label_size = 5,
  point_size = 5,
  s_vjust = 2,
  labelled_IDs = included_IDs,
  xmin = min(dataset$pt_data$E) - 28,
  xmax = max(dataset$obs_data$O)
)

Arguments

dataset

output from simulate_interval_censoring()

included_IDs

character vector of IDs from dataset to include

label_size

numeric: passed to ggrepel::geom_text_repel()'s size argument

point_size

numeric: passed to ggplot2::geom_point's size argument

s_vjust

passed to ggrepel::geom_text_repel's vjust argument

labelled_IDs

character vector indicating which IDs to label events for

xmin

minimum displayed value for x-axis

xmax

maximum displayed value for x-axis

Value

a ggplot