Each locus is color coded for scores of 0, 1, 2 and NA for SNP data and 0, 1 and NA for presence/absence (SilicoDArT) data. Individual labels can be added and individuals can be grouped by population.
Plot may become cluttered if ind_labels If there are too many individuals, it is best to use ind_labels_size = 0.
gl.smearplot(
x,
ind_labels = FALSE,
group_pop = FALSE,
ind_labels_size = 10,
plot_colors = colorRampPalette(c("royalblue3", "firebrick1"))(3),
posi = "bottom",
save2tmp = FALSE,
verbose = NULL
)
Name of the genlight object containing the SNP or presence/absence (SilicoDArT) data [required].
If TRUE, individuals are labelled with indNames(x) [default FALSE].
If ind_labels is TRUE, group by population [default TRUE].
Size of the individual labels [default 10].
Vector with four color names for homozygotes for the reference allele, heterozygotes, homozygotes for the alternative allele and for missing values (NA), e.g. four_colours [default NULL].
Position of the legend: <U+201C>left<U+201D>, <U+201C>top<U+201D>, <U+201C>right<U+201D>, <U+201C>bottom<U+201D> or 'none' [default = 'bottom'].
If TRUE, saves plot to the session temporary directory (tempdir) [default FALSE].
Verbosity: 0, silent or fatal errors; 1, begin and end; 2, progress log; 3, progress and results summary; 5, full report [default NULL].
Returns unaltered genlight object
Other Exploration/visualisation functions:
gl.pcoa.plot()
,
gl.select.colors()
,
gl.select.shapes()
# NOT RUN {
gl.smearplot(testset.gl,ind_labels=FALSE)
gl.smearplot(testset.gs[1:10,],ind_labels=TRUE)
# }
Run the code above in your browser using DataLab