genome.plot | R Documentation |
genome.plot
plots the value of a variable across the genome.
genome.plot(
mydata,
style = 1,
type = "h",
sig.line = c(4, -4),
sig.color = c("red", "red"),
...
)
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 |
This function makes use of the function xyplot
from package lattice
.
Kai Wang <kai-wang@uiowa.edu>
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")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.