map_plot {genogeographer} | R Documentation |
Plot LTR z-scores on map
Description
Plots the results from LRT on a map based on lat/lon info in the database.
If no location is found in the data (e.g. using simulte_pops
) nothing is plotted.
Usage
map_plot(data)
Arguments
data |
The output from the |
Value
A map with population z-scores at their geographic origin
Author(s)
Torben Tvedebrink, tvede@math.aau.dk
Examples
df_ <- simulate_pops(pop_n = 4, aims_n = 50)
df_db <- pops_to_DB(df_)
profile <- random_AIMs_profile(df_db, keep_pop = TRUE)
profile$pop[1] # The true population
result <- genogeo(profile[,c("locus","x0")], df = df_db, min_n = 0)
result$lon <- runif(n = 4, min = -125, max = 125)
result$lat <- runif(n = 4, min = -50, max = 80)
## Not run: map_plot(result)
[Package genogeographer version 0.1.19 Index]