Description Usage Arguments See Also Examples
View source: R/plot.furcation.R
Plots furcation trees around a focal marker
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 |
x |
an object of class furcation (see |
allele |
If |
col |
color for each allele (as coded internally). |
mrk.col |
color of the vertical line at the focal marker position. |
lwd |
controls the relative width of the diagram lines on the plot (default 0.1). |
hap.names |
a vector containing names of chromosomes. |
cex.lab |
relative size of labels. See |
family.lab |
font family for labels. See |
offset.lab |
offset of labels. See |
legend |
legend text. |
legend.xy.coords |
if |
... |
other arguments to be passed to |
1 2 3 4 5 6 7 8 9 10 11 | #example haplohh object (280 haplotypes, 1424 SNPs)
#see ?haplohh_cgu_bta12 for details
data(haplohh_cgu_bta12)
#plotting furcation diagram for both ancestral and derived allele
#from the marker "F1205400"
#which display a strong signal of selection
f <- calc_furcation(haplohh_cgu_bta12, mrk = "F1205400")
plot(f)
plot(f, xlim = c(2e+07,3.5e+07))
plot(f, xlim = c(2.7e+07,3.1e+07))
plot(f, xlim = c(2.7e+07,3.1e+07), hap.names = hap.names(haplohh_cgu_bta12), cex.lab=0.3)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.