powered by
This function is based on the glPlot function from adegenet. It simply aims to put labels on the individuals and scales them accordingly (if there are not too many). For arguments please refer to the original adegenet function ?glPlot.
gl.plot(x, indlabels = indNames(x), col = NULL, legend = TRUE, posi = "bottomleft", bg = rgb(1, 1, 1, 0.5), ...)
-- a genlight object
-- labels for individuals. if not provided labels are taken from the first 8 letters from indNames.
-- optional color vector (see ?glPlot)
-- a logical indicating whether a legend should be added
-- position of the legend
-- background color of the legend [default is transparent white]
--- additional arguments passed to glPlot function.
# NOT RUN { gl.plot(bandicoot.gl[1:30,]) # }
Run the code above in your browser using DataLab