tcplggplot2: tcplggplot2

View source: R/tcplggplot2.R

tcplggplot2R Documentation

tcplggplot2

Description

tcplggplot2

Usage

tcplggplot2(
  dat,
  type = "mc",
  compare = "m4id",
  verbose = TRUE,
  flags = FALSE,
  yrange = c(NA, NA),
  group.fld = NULL,
  group.threshold = 9,
  hide_losing_models = FALSE
)

Arguments

dat

data table with all required conc/resp data; each row will extend comparison

type

string type of data that should be plotted 'sc' plotting - max medians plotted with hitcall 'mc' plotting - all fit models and winning model with hitcall

compare

Character vector, the field(s) samples were joined on for comparison

verbose

boolean should plotting include table of values next to the plot

flags

boolean should plotting include level 6 flags in plot caption

yrange

Integer of length 2, for overriding the y-axis range, c(<min>,<max>). By default, c(NA,NA).

group.fld

Character, column name to group curves by when number of comparison curves exceeds group.threshold. By default 'modl' for MC and 'hitc' for SC.

group.threshold

Integer of length 1, minimum number of samples in a given plot where comparison plots, instead of coloring models by sample, should delineate curve color by a given group.fld. By default 9.

hide_losing_models

Boolean, by default FALSE. For individual mc plots only, should the losing models be hidden?

Value

A ggplot object or grob with accompanied table depending on verbose option


tcpl documentation built on June 8, 2025, 11:41 a.m.