Skip to contents

Plot data with measurement uncertainty (in y and x variables)

Usage

plot_dat(dat, BP_scale = FALSE, add_truth = FALSE)

Arguments

dat

Input data with columns x,x_err,y,y_err

BP_scale

Present the data as Before Present (BP). Defaults to FALSE.

add_truth

Logical argument to add the "True" data generating process to the plot. This should only be set to True when using simulated data from sim_slr, sim_cp or sim_gp.

Value

Plot of data with measurement errors

Examples

dat <- sim_slr(n_sim = 30)
plot_dat(dat)