Description Usage Arguments Details Value See Also Examples
View source: R/manhattanplot.R
Manhattanplot of iHS, XP-EHH or Rsb over a genome.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 | manhattanplot(
data,
pval = FALSE,
threshold = c(-2, 2),
chr.name = NA,
cr = NULL,
cr.col = "gray",
cr.opacity = 0.5,
cr.lab.cex = 0.6,
cr.lab.offset = 0,
cr.lab.pos = "top",
mrk = NULL,
mrk.cex = 1,
mrk.col = "gray",
mrk.pch = 1,
mrk.lab.cex = 0.4,
mrk.lab.pos = 4,
ignore_sign = FALSE,
cex = 0.5,
las = 1,
pch = 20,
inset = 5e+06,
resolution = NULL,
...
)
|
data |
output of either |
pval |
logical. If |
threshold |
a horizontal line is added at the corresponding value(s), for instance to represent a significance threshold. A single value (upper or lower threshold) or two values (upper and lower) can be specified. |
chr.name |
if |
cr |
highlight "candidate regions" specified by a data.frame with columns |
cr.col |
the color for highlighting |
cr.opacity |
a value between 0 (invisible) and 1 (opaque). |
cr.lab.cex |
text size of candidate region labels. |
cr.lab.offset |
offset of candidate region labels. |
cr.lab.pos |
if |
mrk |
highlight marker specified by a data.frame containing the
colums |
mrk.cex |
size of marker label. |
mrk.col |
color of the highlighted points. |
mrk.pch |
type of the highlighted points. |
mrk.lab.cex |
text size of marker label. If zero, no labels are printed. |
mrk.lab.pos |
a position specifier for the text. Values of 1, 2, 3 and 4, respectively indicate positions below, to the left of, above and to the right of the highlighted marker. |
ignore_sign |
logical. If |
cex |
size of the points representing markers in the plot(s) (see |
las |
orientation of axis labels (see |
pch |
type of the points representing markers in the plot(s) (see |
inset |
inset (in bases) between chromosomes to avoid overlap of data points. Default: 5,000,000 bases. |
resolution |
Rasterize data points to the specified resolution and remove
duplicate points. Defaults to NULL, i.e. no rasterization. A typical value might be |
... |
further arguments to be passed to |
The color of chromosomes is taken from the "Graphics Palette", see palette
.
If a single chromosome is plotted, a genomic region can be specified by
argument xlim
.
Other statistics can be plotted as well, although a warning is issued. They must be given by a data.frame with columns CHR and POSITION and the statistic in the third column.
The function returns a plot.
ihh2ihs
, ies2xpehh
, ines2rsb
, calc_candidate_regions
.
1 2 3 4 5 6 | library(rehh.data)
data(wgscan.cgu)
## results from a genome scan (44,057 SNPs)
## see ?wgscan.eut and ?wgscan.cgu for details
wgscan.ihs <- ihh2ihs(wgscan.cgu)
manhattanplot(wgscan.ihs)
|
Discard focal markers with Minor Allele Frequency equal to or below 0.05 .
6890 markers discarded.
37167 markers remaining.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.