Learn R Programming

dartR (version 1.1.11)

gl.plot: Plotting genlight object

Description

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.

Usage

gl.plot(x, indlabels = indNames(x), col = NULL, legend = TRUE,
  posi = "bottomleft", bg = rgb(1, 1, 1, 0.5), ...)

Arguments

x

-- a genlight object

indlabels

-- labels for individuals. if not provided labels are taken from the first 8 letters from indNames.

col

-- optional color vector (see ?glPlot)

legend

-- a logical indicating whether a legend should be added

posi

-- position of the legend

bg

-- background color of the legend [default is transparent white]

...

--- additional arguments passed to glPlot function.

Examples

Run this code
# NOT RUN {
gl.plot(bandicoot.gl[1:30,])
# }

Run the code above in your browser using DataLab