Skip to contents

Plot of two metabolites

Usage

create_plot_of_2_metabolites(dat, metabolite1, metabolite2, interactive = TRUE)

Arguments

dat

a raw_data object, the output of the read_data() function. The data have to be completed, for example using the complete_data() function.

metabolite1

first metabolite name.

metabolite2

second metabolite name.

interactive

logical. If TRUE (default), a ggiraph interactive plot is returned; otherwise, a standard ggplot object is produced.

Examples

path <- get_example_data("small_biocrates_example.xls")
dat <- read_data(path)
dat <- complete_data(dat, "limit", "limit", "limit")
#> Completing 109 < LOD values...
#> Completing 6 < LLOQ values...
#> Completing 9 < ULOQ values...
print(create_plot_of_2_metabolites(dat, "C0", "C2"))
#> Warning: Removed 2 rows containing missing values or values outside the scale range
#> (`geom_interactive_point()`).