View source: R/phyloscan.fun.private.R
phsc.plot.windowsummaries.for.pairs | R Documentation |
This function plots the window summaries for each pair of individuals.
phsc.plot.windowsummaries.for.pairs(
plot.select,
rpw2,
rplkl2,
plot.file,
cols = NULL,
group = NA,
widths = unit(c(4, 6), "null"),
heights = unit(c(2, 3.5, 4, 5), "null"),
height = 9
)
plot.select |
Select pairs for plotting. This is specified as a data.table with columns PTY_RUN, MALE_SANGER_ID, FEMALE_SANGER_ID, LABEL. Each pair has assigned a label that is used as title. |
rpw2 |
Window assignments for pairs of individuals. This is specified as a data.table with columns PTY_RUN, MALE_SANGER_ID, FEMALE_SANGER_ID, W_FROM, ID_R_MAX, ID_R_MIN, TYPE. |
rplkl2 |
Posterior probability assignments for pairs of individuals. This is specified as a data.table with columns PTY_RUN, MALE_SANGER_ID, FEMALE_SANGER_ID, TYPE, KEFF, POSTERIOR_ALPHA, POSTERIOR_BETA |
plot.file |
Name of output file |
cols |
Colours for relationship types. This is specified as a named vector, which can be null. |
group |
Relationship group name. This is used to define default colours if cols==NULL. |
heights |
Heights of subfigures in grid.layout. This is overwritten if group is specified. |
height |
Total height of pdf in inches. This is overwritten if group is specified. |
widhts |
Widths of subfigures in grid.layout. This is overwritten if group is specified. |
Plots to file.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.