- .data
a data frame object with all the pedigree information
- ids
a column of .data of individual identifiers
- mothers
A column of .data of mothers corresponding to ids. Missing
values are 0 or NA.
- fathers
A column of .data of fathers corresponding to ids. Missing
values are 0 or NA.
- cohort
integer. Default NULL. A optional column of .data assigning a
cohort to each id. If NULL, then kinship2::kindepth
is used to assign
cohorts to ids.
- sex
integer or character. Default NULL. An optional column of .data
assigning a sex to each id. When using this option, sex_code
must be
specified. Any values not matching values in sex_code
will be treated as
unknown sex.
- pheno
integer or character. Default NULL. An optional column of .data
assigning a phenotype to each id. Links originating from parents that have
NA
values for this argument will be plotted with a grey line, unless
otherwise specified in line_col_no_pheno
.
- sex_code
Default NULL. A vector of length 2, indicating the value used
in sex
for females and males respectively. Females are plotted as
circles, males as squares, and unknown values as triangles.
- id_labels
logical. Default FALSE. Print the ids on the pedigree plot.
- remove_singletons
logical. Default TRUE. Remove ids with no relatives
i.e., no offspring or parents assigned.
- plot_unknown_cohort
logical. Default FALSE. Plots ids of unknown
cohorts. These are plotted in an "Unknown" cohort at the top of the
pedigree. Be aware that any mothers and fathers of these individuals will
be plotted below them.
- spread_x_coordinates
logical. Default TRUE. Evenly spreads the x-axis
(horizontal) distribution of points within each cohort. If FALSE, this will
plot the direct outcome of igraph::layout_with_sugiyama
; the FALSE option
is only recommended for small pedigrees and/or less connected pedigrees.
- print_cohort_labels
logical. Default TRUE. Prints cohort levels on the
left hand side of plot.
- return_plot_tables
logical. Default FALSE. Returns an object with the
line and point data used for the plot, but the plot will not be generated
- line_col_mother
Default = "#E41A1C". Line colour for maternal links.
- line_col_father
Default = "#377EB8". Line colour for paternal links.
- line_col_no_pheno
Default = "#aaaaaa". Line colour for parents with
NA
values in pheno
.
- line_alpha
Default = 0.3. Line alpha (transparency) value for maternal
and paternal links.
- point_size
Default = 1. Point size for ids.
- point_colour
Default = "black". Point colour for ids.
- point_alpha
Default = 1. Point alpha for ids.