Creates a plot of the difference between two grades against the mean of the two grades with mean and 95 Calculates the mean difference, intra-class correlation, and n (%) within [range1], [range2], and [range3].
1 2 3 4 5 6 7 | sd.plotaLimit(grade1a, grade2a, label1, label2, range1, range2, range3,
ptsz = 0.7, cantgrade = c("", "Not applicable"), maintitle = "",
subtitle = "", footer = "", x1 = -999, x2 = -999, y1 = -999,
y2 = -999, factor = 1e-08, spline = FALSE,
xlab = "Average of the Two Grades", ylab = "Difference of the Two Grades",
ylimit = NULL, CI_background = grey(1), CI_use_quantiles = FALSE,
mar = c(0, 0, 0, 0))
|
grade1a |
a vector of grades |
grade2a |
a corresponding vector of grades |
label1 |
label of the first grader |
label2 |
label of the second grader |
range1 |
numeric |
range2 |
numeric |
range3 |
numeric |
ptsz |
numeric; passed to the cex arguments of points. Default is 0.7 |
cantgrade |
character/numeric vector used to indicate cannot grade. Default: c(”, 'Not applicable') |
maintitle |
main title of graph. If units included, expressions can be preserved by surrounding them with #. Example: #mm^2#. |
subtitle |
sub title of graph |
footer |
footer |
x1, x2 |
range of x axis – if -999 (default), the range is calculated based on the data |
y1, y2 |
range of y axis – if -999 (default), the range is calculated based on the data |
factor |
numeric; passed to jitter for plotting of data points. Adjusts how spread out the points are. |
xlab |
label for x-axis |
ylab |
label for y-axs |
ylimit |
numeric vector; overwrites y1, y2 for y limits |
CI_background |
color for confidence interval background |
CI_use_quantiles |
logical; if FALSE (default), use mean +/- 1.96 SD as confidence interval. If TRUE, use quantiles. |
mar |
margin passed to par. Set to c(0,0,0,0) for printing to pdf file. |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.