kinship.development {MoBPS} | R Documentation |
Devolopment of genetic/breeding value
Description
Function to plot genetic/breeding values for multiple generation/cohorts
Usage
kinship.development(
population,
database = NULL,
gen = NULL,
cohorts = NULL,
json = FALSE,
ibd.obs = 50,
hbd.obs = 10,
display.cohort.name = FALSE,
display.time.point = FALSE,
equal.spacing = FALSE,
time_reorder = FALSE,
display.hbd = FALSE
)
Arguments
population |
population list |
database |
Groups of individuals to consider for the export |
gen |
Quick-insert for database (vector of all generations to export) |
cohorts |
Quick-insert for database (vector of names of cohorts to export) |
json |
If TRUE extract which cohorts to plot according to the json-file used in json.simulation |
ibd.obs |
Number of Individual pairs to sample for IBD estimation |
hbd.obs |
Number of Individuals to sample for HBD estimation |
display.cohort.name |
Set TRUE to display the name of the cohort in the x-axis |
display.time.point |
Set TRUE to use time point of generated to sort groups |
equal.spacing |
Equal distance between groups (independent of time.point) |
time_reorder |
Set TRUE to order cohorts according to the time point of generation |
display.hbd |
Set to TRUE to also display HBD in plot |
Value
Estimated of avg. kinship/inbreeding based on IBD/HBD
Examples
data(ex_pop)
kinship.development(ex_pop,gen=1:5)