For a given dataset and a named vector with variables from that dataset, this function creates twograders.plotx and sd.plotaLimit (when appropriate) plots for all variables.
1 2 3 4 5 | Plot.plotx.sd.Limit(data = NULL, plotX = NULL, var.units = NULL,
vars = "all", lab1 = "ST", lab2 = "QC", sep = ".", nes = c("", NA),
ranges = c(1, 2, 5), cantgrade = 8888, foottext = "", title2 = "",
plot.type = c("sd.plotaLimit", "twograders.plotx"), show.progress = TRUE,
show.plot = FALSE, mar = c(0, 0, 0, 0), CI_use_quantiles = FALSE)
|
data |
dataset |
plotX |
named vector containing variables from data. Names are used as titles for the plots. If not named, the variable itself will be used. |
vars |
indicates which variables should be plotted. Default is 'all' |
lab1 |
lab1 in crossa (default 'ST') |
lab2 |
lab2 in crossa (default 'QC') |
sep |
separation symbol between variable and QC/ST in data. (default '.') |
nes |
character vector with strings that should be ignored in right.subset. (default c(”, NA)) |
foottext |
foot text for plots (default NULL) |
title2 |
character string to use as subtitle for plots |
plot.type |
character vector specifying which figure(s) to plot. Can be one: "sd.plotaLimit", "twograders.plotx", or c('sd.plotaLimit', 'twograders.plotx') (latter is default) |
show.progress |
logical; should the variable names be printed when plotted? (defualt TRUE) |
show.plot |
logical; should the plots be plotted one by one? (click for next, default FALSE) |
mar |
margin to be passed to plots. Set to c(0,0,0,0) when printing multiple plots to PDF. |
CI_use_quantiles |
logical; passed to sd.plotaLimit. |
var.unit |
named vector containing strings to be included as units. Added to the title in parenthesis. Expressions can be included by enclosing in #. For example: #mm^2#. Names of vector should correspond to names of crossA vector, or if crossA vector is unnamed, to elements of crossA. |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.