bayesnechurdlefitR/bayesnechurdlefit-methods.R
autoplot.bayesnechurdlefit.RdCreates a ggplot2 plot of a bayesnechurdlefit
An object of class bayesnechurdlefit.
Not used. dpar is refused, so select a curve with
which, and any other argument is refused as well.
Which curve(s) to return. See plot.
Should credible intervals be drawn? Defaults to TRUE.
The number of unique predictor values.
A range of predictor values.
NULL, the default, or a function to apply to the
predictor on the scale x_scale selects. With an inline predictor
transformation, a function on the default recorded scale gives a warning.
X axis label.
Y axis label. Defaults to NULL, which labels each panel
by what it shows.
The opacity factor for the observation points, a single number from 0 to 1. It multiplies the existing opacity of the first colour of the current R palette. Defaults to 0.25.
"recorded" (the default) or "fitted".
The fitted option returns the predictor on the scale transformed inside
crf(), with breaks in attribute "x_axis" labelled in
recorded units.
Should the no-effect estimate and its credible limits be drawn
on each panel? A bound is marked at the plotted range. Defaults to
TRUE.
Should an ECx estimate and its credible limits be drawn on each
panel? A bound is marked at the plotted range. Defaults to FALSE.
The percentage effect for ecx; defaults to 10.
A ggplot object.
As for plot, the default is the combined endpoint
alone and which = "all" facets rather than overlays, because the
three curves are not on a common scale. Each panel carries a single series,
so no colour encoding or legend is needed.