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

drda object as returned by the link[drda]{drda} function.

...

other drda objects or parameters to be passed to the plotting functions. See 'Details'.

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 are 10 for base 10, 2 for base 2, e for base e, or n (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. Set to zero or a negative value to disable confidence intervals.

midpoint

if FALSE do not show guidelines associated with the curve mid-point.

plot_data

if FALSE do not show data points used for fitting in the plot.

legend_show

if FALSE do not show 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.

Value

No return value.


[Package drda version 2.0.3 Index]