Learn R Programming

FunctanSNP (version 0.1.0)

plotRawdata: 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)

Value

show the sequence data.

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 (par) for more details.

pch

Either an integer specifying a symbol or a single character to be used as the default in plotting points. See graphical parameters (par) for more details.

cex

A numerical value giving the amount by which plotting text and symbols should be magnified relative to the default. See graphical parameters (par) for more details.

See Also

See Also as simX, SNPgvf.

Examples

Run this code
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, ])

Run the code above in your browser using DataLab