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

View source: R/plot_dat.R

plot_datR Documentation

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

Description

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)

ncahill89/EIVmodels documentation built on Dec. 5, 2022, 2:10 p.m.