plot_kin_fct_: Plot frequency of a binary feature.

View source: R/utils.R

plot_kin_fct_R Documentation

Plot frequency of a binary feature.

Description

Plots the frequency of a binary feature together with the model predictions.

Usage

plot_kin_fct_(
  kinetic_object,
  point_color = "steelblue",
  outcome_color = "steelblue",
  fitted_color = "coral3",
  fitted_line = "dashed",
  cust_theme = ggplot2::theme_classic(),
  plot_title = NULL,
  plot_subtitle = NULL,
  plot_tag = NULL,
  x_lab = kinetic_object$time,
  y_lab = "% cohort",
  labels = TRUE,
  repel_labels = FALSE,
  signif_digits = 2,
  label_size = 2.3,
  fitted = FALSE
)

Arguments

kinetic_object

a kinetic class object.

point_color

color of the points and text labels.

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.

plot_title

plot title.

plot_subtitle

plot subtitle.

plot_tag

plot tag.

x_lab

x axis title.

y_lab

y axis title.

labels

logical, display percent labels for the time points?

repel_labels

logical, place the labels to reduce their overlap?

signif_digits

significant digits for the percent value rounding.

label_size

size of the percent labels.

fitted

logical, display the model fit?

Value

a ggplot object.


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