genome.plot {iGasso} | R Documentation |
Genome-wide Plot of a Variable
Description
genome.plot
plots the value of a variable across the genome.
Usage
genome.plot(
mydata,
style = 1,
type = "h",
sig.line = c(4, -4),
sig.color = c("red", "red"),
...
)
Arguments
mydata |
a data frame containing three variables: |
style |
either |
type |
a generic graphic parameter. Recommended values are |
sig.line |
vertical locations of significance lines. |
sig.color |
colors of significance lines. |
... |
other parameters to be passed to function |
Details
This function makes use of the function xyplot
from package lattice
.
Author(s)
Kai Wang <kai-wang@uiowa.edu>
Examples
y = rnorm(100)
chr = c(rep(1, 20), rep(3, 20), rep(10, 20), rep(19, 30), rep("X", 10))
pos = c(1:20, 1:20, 1:20, 1:30, 1:10)
mydata = data.frame(y=y, chr=chr, pos=pos)
mydata2 = data.frame(y=y^2, chr=chr, pos=pos)
genome.plot(mydata, sig.line=c(1, -1), ylab="T Statistic")
genome.plot(mydata, sig.line=c(1, -1), ylab="T Statistic", type="b")
genome.plot(mydata2, sig.line=c(2), ylab="y squared")
genome.plot(mydata, style=2, sig.line=c(1, -1), ylab="T Statistic")
genome.plot(mydata, style=2, sig.line=c(1, -1), ylab="T Statistic", type="b")
[Package iGasso version 1.6.1 Index]