make_figure: Make a figure with experimental data and fitted binding curve

Description Usage Arguments Value

View source: R/make_figure.R

Description

This function takes a list containing any number of model objects from fit_binding_model or nls and returns a binding curve plot figure for each model.

Usage

1
2
make_figure(fits, probe_concentration = NULL, output_directory = NULL,
  plot_format = "png")

Arguments

fits

A named list where items are named after the corresponding experiment and contain a model object from nlsLM. The output of fit_binding_model can be used directly as input here.

probe_concentration

The fixed concentration of probe molecule. This is ignored for models obtained with the hyperbolic and hill equations, but required for models obtained with the quadratic equation.

output_directory

An optional directory name where to write plots. This directory will be created if it does not already exist.

plot_format

A character string indicating the file format to use to save plots. Possible values are "png" (default value), "pdf" and "svg".

Value

A named list where items are named after the corresponding experiment and contain a ggplot graph object of a binding curve figure.


Guilz/rfret documentation built on Oct. 18, 2021, 2:14 p.m.