Skip to contents

The SEG modified Bland-Altman plot

Usage

seg_modba_graph(data, text_size = 16)

Arguments

data

Dataset containing only BGM and REF columns

text_size

base size passed to theme_seg()

Value

modified Bland-Altman plot

Examples

require(vroom)
vanderbilt_complete <- vroom::vroom(
 file =
   system.file("extdata", "VanderbiltComplete.csv",
               package = "segtools"), delim = ",")
#> Rows: 9891 Columns: 2
#> ── Column specification ────────────────────────────────────────────────────────
#> Delimiter: ","
#> dbl (2): BGM, REF
#> 
#>  Use `spec()` to retrieve the full column specification for this data.
#>  Specify the column types or set `show_col_types = FALSE` to quiet this message.
seg_modba_graph(data = vanderbilt_complete)
#> Warning: Removed 79 rows containing missing values (`geom_point()`).
#> Warning: Removed 79 rows containing missing values (`geom_point()`).
#> Warning: Removed 1 row containing missing values (`geom_line()`).
#> Warning: Removed 1 row containing missing values (`geom_line()`).