Function to produce a scatterplot matrix comparing a sample of items to the population from which they were drawn.
1 2 3 4 |
items |
a character vector of items used to index dat |
dat |
a matrix or dataframe containing describing each item in the population on the dimensions to be plotted |
label_vec |
optional character vector of variable labels |
selected_col |
colour for plotting selected items |
nonselected_col |
colour for plotting nonselected items |
mar |
vector containing margin parameters passed to par() |
mgp |
vector containing axis label locations passed to par() |
nonselected_alpha |
transparency for scatterplot points for nonselected items |
xlim |
an xlim vector or list of xlim vectors |
ylim |
a ylim vector or list of ylim vectors |
include_nonsampled |
logical denoting whether to plot nonsampled items |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.