ggplot_gd | R Documentation |
Plot genetic diversity layer produced by window_gd or krig_gd
ggplot_gd(x, bkg = NULL, index = NULL, col = viridis::magma(100))
x |
output from window_gd or krig_gd (RasterStack where first layer is genetic diversity) |
bkg |
optional raster or sf polygon |
index |
index of raster layers to plot (defaults to plotting all of the layers except the one called "sample_count", if more than one layer is provided) |
col |
color palette to use for plotting (defaults to magma palette) |
list of ggplots
data("mini_lyr")
ggplot_gd(mini_lyr)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.