Plot of two metabolites
create_plot_of_2_metabolites.Rd
Plot of two metabolites
Arguments
- dat
a
raw_data
object, the output of theread_data()
function. The data have to be completed, for example using thecomplete_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()`).