Function to produce scatterplots depicting bivariate distributions across different samples.
1 2 3 4 |
items |
a character vector of items used to index dat |
var_name |
a string contianing the name of the variable to be described |
dat |
a matrix or dataframe containing describing each item in the population on the dimensions to be plotted |
G |
a list describing each group of items |
xlim |
an xlim vector |
ylim |
an ylim vector |
xlab |
string containing x axis label |
ylab |
string containing y axis label |
selected_col |
colour for plotting selected items |
nonselected_col |
colour for plotting nonselected items |
nonselected_alpha |
transparency for scatterplot points for nonselected items |
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.