identify.mediation: Identify dot in mediation plot

Description Usage Arguments Value See Also Examples

Description

Enable user to identify a dot on a plot produced by plot.mediation.

Usage

1
2
## S3 method for class 'mediation'
identify(med, label.col = "symbol")

Arguments

med

A mediation object

label.col

A column name of med to be used to be plotted

Value

A row from med corresponding to the point nearest to the click.

See Also

plot.mediation

Examples

1
2
3
4
5
6
7
8
data(Tmem68)
med <- mediation.scan(target = Tmem68$target,
                      mediator = Tmem68$mediator,
                      annotation = Tmem68$annotation,
                      covar = Tmem68$covar,
                      qtl.geno = Tmem68$qtl.geno)
plot(med)
identify(med)

simecek/intermediate documentation built on May 29, 2019, 10:01 p.m.