chrome_plot: IBD segments plot

Description Usage Arguments Examples

View source: R/chrome.R

Description

Plots the output of chrome_map.

Usage

1
chrome_plot(d, key, chromosome, length, type, title)

Arguments

d

Dataframe output from chrome_map.

key

String that identifies the column in d that uniquely identifies the pair of individuals corresponding to each row.

chromosome

String indentifying the column in d that indicates the chromosome of each IBD segment.

length

String indentifying the column in d that indicates the length of each IBD segment, gap, or merge, calculated by chrome_map.

type

String indentifying the column in d that indicates the type of each value, calculated by chrome_map.

title

String for the plot's title.

Examples

1
2
3
data(test_ibd_segments)
df <- chrome_map(test_ibd_segments, "result_id", "chromosome", "bp_start", "bp_end")
chrome_plot(df, "result_id", "chromosome", "len", "type", "Test IBD Matches")

rmunoz12/chromeR documentation built on May 27, 2019, 9:56 a.m.