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.
The output from the
A map with population z-scores at their geographic origin
Torben Tvedebrink, firstname.lastname@example.org
1 2 3 4 5 6 7 8
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 # 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)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.