plotRawdata {FunctanSNP} | R Documentation |
Visualization of the sequence (genotypes) data
Description
Display the sequence data, such as the data generated by simX. The horizontal axis represents the sampling sites, and the vertical axis represents the sequence values containing only 0, 1 and 2.
Usage
plotRawdata(location, X, color = NULL, pch = 16, cex = 0.9)
Arguments
location |
a numeric vector defining the sampling sites of the sequence data. |
X |
a matrix specifying the sequence data, with the number of rows equal to the number of samples. |
color |
A specification for the default plotting color. See graphical parameters ( |
pch |
Either an integer specifying a symbol or a single character to be used as the default in plotting points. See graphical parameters ( |
cex |
A numerical value giving the amount by which plotting text and symbols should be magnified relative to the default. See graphical parameters ( |
Value
show the sequence data.
See Also
Examples
library(FunctanSNP)
n <- 20
m <- 50
simdata <- simX(n, m, seed = 1, d.ratio = 0)
X <- simdata$X
location <- simdata$location
plotRawdata(location, X = X[1:2, ])