plot.drda {drda} | R Documentation |
Model fit plotting
Description
Plot maximum likelihood curves fitted with drda
.
Usage
## S3 method for class 'drda'
plot(x, ...)
Arguments
x |
|
... |
other |
Details
This function provides a scatter plot of the observed data, overlaid with the maximum likelihood curve fit. If multiple fit objects from the same family of models are given, they will all be placed in the same plot.
Accepted plotting arguments are:
- base
character string with the base used for printing the values on the
x
axis. Accepted values are10
for base 10,2
for base 2,e
for base e, orn
(default) for no log-scale printing.- col
curve color(s). By default, up to 9 color-blind friendly colors are provided.
- xlab, ylab
axis labels.
- xlim, ylim
the range of x and y values with sensible defaults.
- level
level of confidence intervals (default is 0.95). Set to zero or a negative value to disable confidence intervals.
- midpoint
if
TRUE
(default) shows guidelines associated with the curve mid-point.- plot_data
if
TRUE
(default) shows in the plot the data points used for fitting.- legend_show
if
TRUE
(default) shows the legend.- legend_location
character string with custom legend position. See
link[graphics]{legend}
for possible keywords.- legend
custom labels for the legend model names.
- show
If
TRUE
(default) a figure is plotted, otherwise the function returns a list with values to create the figure manually.
Value
If argument show
is TRUE
, no return value. If argument show
is
FALSE
, a list with all plotting data.