This is a censoring geom that shows the left or right censoring specified in the nlmixr input data-set or fit
stat_cens( mapping = NULL, data = NULL, position = "identity", show.legend = NA, inherit.aes = TRUE, width = 0.01, ... ) geom_cens( mapping = NULL, data = NULL, position = "identity", show.legend = NA, inherit.aes = TRUE, width = 0.01, ... )
Set of aesthetic mappings created by
The data to be displayed in this layer. There are three options:
Position adjustment, either as a string, or the result of a call to a position adjustment function.
logical. Should this layer be included in the legends?
represents the width (in \ censoring box
Other arguments passed on to
This returns a ggplot2 stat
Requires the following aesthetics:
x Represents the independent variable, often the time scale
y represents the dependent variable
CENS for the censoring information; (
-1 right censored,
0 no censoring or
1 left censoring)
LIMIT which represents the corresponding limit ()
Will add boxes representing the areas of the fit that were censored.