options_plot {ssd4mosaic}R Documentation

Graphical representation of toxicity data with additional elements

Description

Create an empirical cdf representation with the options to color data according to a group label and to display a name label for each observation.

Usage

options_plot(
  fits,
  unit,
  logscale,
  data,
  use_names = FALSE,
  use_groups = FALSE,
  horizontals = TRUE,
  lines_display = TRUE
)

Arguments

fits

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

unit

A character vector, the unit of the toxicity data

logscale

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

data

A data.frame with column conc if uncensored data, with left and right if censored data, column name if the names are to be displayed and column group if the groups are to be displayed.

use_names

if TRUE, name labels are added to the plot.

use_groups

if TRUE, data in the plot is colored by group.

horizontals

A boolean. In case of uncensored data, whether to draw horizontal lines for the step of the cumulative distribution function. Should be set to FALSE when use_group = TRUE for a better visual.

lines_display

A boolean. In case of censored data, whether to display the raw data or the non parametric maximum likelihood estimation (NPMLE) representation. Ignored when use_groups = TRUE. Raw data give a better visual with name labels.

Value

A ggplot object.


[Package ssd4mosaic version 1.0.1 Index]