LDheatmap.addGrob: Add a graphical object to an LDheatmap plot

Description Usage Arguments Value Author(s) See Also Examples

View source: R/LDheatmap.addGrob.R

Description

Add a graphical object to an LDheatmap plot such that the x-axis corresponds to the physical map on the heatmap.

Usage

1

Arguments

LDheatmap

An object of class LDheatmap.

grob

A graphical object of classgrob.

height

The height of the viewport in which the grob will be placed.

Value

An object of class LDheatmap given as an argument, with the grob LDheatmapGrob modified to inclue the new child grob.

Author(s)

Sigal Blay <sblay@sfu.ca>

See Also

LDheatmap

Examples

1
2
3
4
# Add an empty rectangle frame
data(GIMAP5.CEU) 
ll<-LDheatmap(GIMAP5.CEU$snp.data,GIMAP5.CEU$snp.support$Position,flip=TRUE)
llplusgrob<-LDheatmap.addGrob(ll, grid::rectGrob())

321Yan/LDheatmap-testing documentation built on July 14, 2019, 2:28 p.m.