cens_lines_plot {ssd4mosaic}R Documentation

Graphical representation of censored data

Description

cens_lines_plot create a plot representing each interval of toxicity values with a horizontal line, or a point if the bounds of the interval are equal. It is possible to color the lines by a grouping indicator.

Usage

cens_lines_plot(
  data,
  unit,
  logscale,
  fits = NULL,
  leftNA = 0,
  rightNA = Inf,
  color_group = FALSE
)

Arguments

data

A data.frame containing censored toxicity values. It must have columns left, right, and label if color_group = TRUE. Censored values are indicated with NA.

unit

A character vector, the unit of the toxicity data

logscale

if TRUE, uses a logarithmic scale for the x-axis

fits

A list of fits of class fitdist or fitdistcens computed from the same toxicity data.

leftNA

The value to replace censored left values. Default to 0 because toxicity values are concentrations.

rightNA

The value to replace censored right values.

color_group

if TRUE, color the elements of the plot by the group label of the data (column label).

Value

A ggplot object.


[Package ssd4mosaic version 1.0.1 Index]