relationship_zone_perimeters: Return the perimeters of all the relationship zones

View source: R/relationship_zone_perimeters.R

relationship_zone_perimetersR Documentation

Return the perimeters of all the relationship zones

Description

This is primarily for plotting a figure in the paper about this package, showing where all the relationship zones are. It merely cycles over the possible relationships in relationship_zone_names and produces one or two rows in a tibble for each that has the corners of the rectangle of that zone in the columns xmin, xmax, ymin, and ymax. It is designed to be overlaid upon the ancestry_match_matrix plots. There are some additional columns that give us the midpoint of the area, etc.

Usage

relationship_zone_perimeters()

Value

Returns a tibble with the following columns:

  • which_matrix: a column of values M1 or M2. M1 denotes that the row's values are for the relationship zone found in or below the lower diagonal of the ancestry match matrix and M2 denotes that the row's value are of the zone found in the upper part of the ancestry match matrix. Symmetrical relationships are considered to be M1.

  • zone: The abbreviation for the relationship (e.g., Se, PO, Si, etc.)

  • xmin: The left-hand x value of the zone.

  • xmax: The right-hand x value of the zone.

  • ymin: The bottom y value of the zone.

  • ymax: The top y value of the zone.

  • area: The area in unit squares of the zone.

  • xmid: The x midpoint of the zone.

  • ymid: The y midpoint of the zone.

Examples

relationship_zone_perimeters()

eriqande/CKMRpop documentation built on Jan. 25, 2024, 2:10 p.m.