Function to plot pairwise relatioships within a dataset. A grid will be created with each variable plotted against the other. The diagonals will dispay the frequency distributions of the data, which can be plotted as a histogram or with kernel density estimation of the distribution
pairplot(header, data, column, png_name) pairplot(header, data, column, png_name, sheader, sdata) pairplot(header, data, column, png_name, sheader, sdata, hue) pairplot(header, data, column, png_name, sheader, sdata, hue, hue_bin) pairplot(header, data, column, png_name, sheader, sdata, hue, hue_bin, n_points)
m x 1 vector of headers for numeric data
n x m matrix of numeric data, with matrix of column vectors
vector of columns indices or header labels which will be plotted
name for the png file to be exported
p x 1 matrix of corresponding headers for string/text data
n x p matrix of string/text data with data as column vectors
label of field on which to split the data into different groups and colours for plotting
if hue column is corresponding to a numeric field, this is the the number of bins to split the data into linearly over range, the default for this is 5.
number of points for the kernel density estimation of the frequency distributions to be estimated over, more points result in a smoother curve. Default is 1000.