For a given dataset and a named vector with variables from that dataset, this function creates crossa plots for all variables.
1 2 3 4 |
data |
dataset that includes columns named <var>.QC and <var>.ST for all <var> in crossAs |
crossAs |
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') |
cannotgrades |
Named vector indicating how 'cannot grade' is coded. Names should be identical to names(crossAs) |
foottext |
foot text for plots (default NULL) |
show.plot |
logical; should the plots be plotted one by one? (click for next, default FALSE) |
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)) |
title2 |
character string to use as subtitle for plots |
ext.labels |
if NULL (default), labels printed in squares. Otherwise, character vector with same length as vars, with strings to be stand-in for labels in squares while actual labels are printed in the lower left corner. If elements are not strings, but TRUE/FALSE, numbers are used as labels for TRUE entries. If simply TRUE, external labels will be used for all variables. |
cex |
numeric; passed to crossa. Default 1. |
PLOT |
logical; if TRUE (default), figure is plotted. If FALSE, summary returned without any figures. |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.