Skip to contents

FUnction plots the uptake values for one, selected peptide. Alongside the fitted model is plotted in black, with its components (fast - red, medium - green, slow - blue). In case when peptide is classified as a edge case, the linear model is used.

Usage

plot_fitted_uc(
  fit_dat,
  fit_values,
  replicate = FALSE,
  fractional = TRUE,
  interactive = FALSE
)

Arguments

fit_dat

uptake data for selected peptide.

fit_values

fit values for selected peptide.

replicate

indicator if the replicate data is plotted, or aggregated.

fractional

...

interactive

...

Value

a ggplot object. Need converstion to girafe for interactivity.

See also

plot_lm

Examples

kin_dat <- prepare_kin_dat(alpha_dat)
fit_dat <- kin_dat[kin_dat[["ID"]]==1, ]
fit_k_params <- get_example_fit_k_params()
control <- get_example_control()
fit_values_all <- create_fit_dataset(kin_dat, fit_k_params, control)
fit_values <- fit_values_all[fit_values_all[["id"]]==1, ]
plot_fitted_uc(fit_dat, fit_values)
#> Warning: Removed 101 rows containing missing values or values outside the scale range
#> (`geom_function()`).
#> Warning: Removed 101 rows containing missing values or values outside the scale range
#> (`geom_function()`).
#> Warning: Removed 65 rows containing missing values or values outside the scale range
#> (`geom_function()`).