Learn R Programming

genogeographer (version 0.1.19)

error_bar_plot: Plot log likelihoods of profiles with approximate confidence intervals

Description

Plots the estimated profile probabilities in each population. The colour depends on the profiles likelihood and rejection/acceptance (blue/red) based on z-score

Usage

error_bar_plot(data)

Arguments

data

The output from the genogeo function

Value

A barplot of the log likelihoods for each population with confidence limits

Examples

Run this code
# NOT RUN {
df_ <- simulate_pops(pop_n = 20, 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)
error_bar_plot(result)
# }

Run the code above in your browser using DataLab