View source: R/precision_functions.R
bias.plot | R Documentation |
bias.plot
creates a bias plot (see Campana 2001) that helps the
researcher assess whether bias is present between two sets of age reads
on the same individual fish. The plot is constructed using lattice
graphics.
bias.plot( Data, R1.label = "Reader 1", R2.label = "Reader 2", a = 0, b = 1, pch = 16, col.points = "black", lty.ab = 2, lty.col = "black", err.col = "black" )
Data |
Numeric data frame having columns titled the following
Other columns may be present in the data frame. |
R1.label |
Text label for the x-axis (defaults to Reader 1) for the resultant plot |
R2.label |
Text label for the y-axis (defaults to Reader 2) for the resultant plot |
a |
numeric; y-axis intercept for comparison line |
b |
numeric; slope estimate for comparison line |
pch |
see |
col.points |
A specification for the plotting color of the points. See
description of Color Specificaiton in the |
lty.ab |
specify line type for the "ab" line. See description of
lty in the |
lty.col |
specify the line color for the "ab" line. See
description of Color Specificaiton in the |
err.col |
specify the line color for the error bars. See
description of Color Specificaiton in the |
A xyplot
using the package lattice depicting the
bias plot between Reader 2 and Reader 1 ages.
Other Bias Plot Functions:
dist.plot()
# Example with RedPorgy data data(RedPorgy) df <- with(RedPorgy, aggregate(R4.Age ~ R1.Age, FUN = describe, digits = 4 )) df <- cbind(df[-ncol(df)], df[[ncol(df)]]) colnames(df) <- c("Age" ,"n", "Avg", "StDev", "StErr", "CI", "CV","RSE", "RMSD", "MAE") bias.plot(Data = df)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.