map_plot: Plot LTR z-scores on map

Description Usage Arguments Value Author(s) Examples

View source: R/map_plot.R

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

1

Arguments

data

The output from the genogeo function

Value

A map with population z-scores at their geographic origin

Author(s)

Torben Tvedebrink, tvede@math.aau.dk

Examples

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[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)

genogeographer documentation built on Sept. 27, 2019, 5:03 p.m.