Learn R Programming

adwave (version 1.1)

plotsignal: Plot Localized Admixture Signals

Description

Plotting function for objects of class adsig.

Usage

plotsignal(x, ind = NULL, popA = NULL, popB = NULL, xlab = NULL, ylab = NULL, ylim = NULL, main = NULL)

Arguments

x
object of class adsig for plotting.
ind
character giving ID of a single individual to plot.
popA
(optional) name of ancestral population 1.
popB
(optional) name of ancestral population 2.
xlab
(optional) character string for x axis label.
ylab
(optional) character string for y axis label.
ylim
(optional) vector giving plotting range for y axis.
main
(optional) character string for title.

Value

Produces figure.

References

Sanderson, J., H. Sudoyo, T.M. Karafet, M.F. Hammer and M.P. Cox. 2015. Reconstructing past admixture processes from local genomic ancestry using wavelet transformation. Genetics 200:469-481.

See Also

signal

Examples

Run this code

data(admix)

# Generate the admixture signal with windowing
AdexPCA2 <- signal(admix$data,popA="popA",popB="popB",populations=admix$populations,
		tol=0.001,n.signal=1000,window.size=0.01)

# Plot resulting admixture signal for one individual
plotsignal(AdexPCA2,ind="AD00001",popA=AdexPCA2$popA,popB=AdexPCA2$popB)

Run the code above in your browser using DataLab