plot_kin_numeric_: Generate a trajectory plot for a kinetic object.

View source: R/utils.R

plot_kin_numeric_R Documentation

Generate a trajectory plot for a kinetic object.

Description

Plots a numeric kinetic object. Points represent single observations, medians and IQR (interquartile ranges) at particular time points are displayed as lines and colored regions.

Usage

plot_kin_numeric_(
  kinetic_object,
  point_color = "gray60",
  point_alpha = 0.5,
  outcome_color = "steelblue",
  fitted_color = "coral3",
  fitted_line = "dashed",
  cust_theme = ggplot2::theme_classic(),
  jitter_w_perc = 2,
  jitter_h_perc = 1,
  plot_title = NULL,
  plot_subtitle = NULL,
  plot_tag = NULL,
  x_lab = kinetic_object$time,
  y_lab = kinetic_object$response,
  IQR = TRUE,
  fitted = TRUE,
  IQR_fitted = FALSE
)

Arguments

kinetic_object

a kinetic class object.

point_color

color of the points (observations).

point_alpha

point alpha.

outcome_color

color of the median and IQR representations.

fitted_color

color of the model fit line.

fitted_line

style of the model fit line.

cust_theme

a ggplot theme.

jitter_w_perc

horizontal jittering of the point, in percents.

jitter_h_perc

vertical jittering of the points, in percents.

plot_title

plot title.

plot_subtitle

plot subtitle.

plot_tag

plot tag.

x_lab

x axis title.

y_lab

y axis title.

IQR

logical, display the IQR of the outcome?

fitted

logical, display the model fit?

IQR_fitted

logical, display the model fit IQR?

Value

a ggplot object.


PiotrTymoszuk/kinet documentation built on June 12, 2022, 7:29 p.m.