This function is used by match_alleles
to
generate an intensity plot. This function is currently only
partially implemented, so we recommend that users do not
bother with it.
intensity_plot(x, y, strata, nbin = 20,
xmax = max(x), xmin = min(x),
ymax = max(y), ymin = min(y),
strata_colours = c("black", "red", "turquoise3"),
verbose = TRUE, xlab = "x", ylab = "y", ...)
numerical vectors; the x and y coordiantes of the datapoints.
logical vector; indicates whether the datapoint belongs to strata 1 or 2. If missing, all datapoints are assumed to belong to strata 1.
integer: the number of bins (categories) on the x and y axis.
numeric; the range of x and y values shown in the plot.
character vector of length 3
,
indicating the colours to be used for entries of strata 1, 2
or mixed, respectively.
logical; determines whether a warning is printed in the console when datapoints are removed.
arguments passed to plot
.
An invisible object of type list
with the following two
components:
The number of entries removed due to missing values
The number of entries removed because they exceeded the thresholds specified by the min/max arguments.
This function is intended as an alternative to the standard scatter plot for the allele-frequency correlation graph.