Description Usage Arguments Value Author(s) Examples
View source: R/plot.mapfuser.R
Visualise mapfuser object data
1 2 3 4 |
x |
A mapfuser object with a reference map loaded and either a consensus map created with mapfuser or a genetic loaded with read_maps |
which |
Dataset to visualize: 1) which = "mapnetwork", "mst". Plots the connection in terms of overlapping markers between maps as mapnetwork and the corresponding minimum spanning tree using the inverse of the number of anchors markers as edge weight 2) which = "compare_maps". Plots a simple scatterplot between two genetic maps, 3) which = "single_map". Plot a single map per chromosome in mapchart style 4) which = "marey_map". Plot the relationship between centi Morgan positions and physical genome position along with the fitted Penalized spline for each chromosomes 5) which = "recombination_rate". Plot the recombination rate in centi Morgan per mega base pair along the physical genome. |
chr |
The chromosomes to plot, mapnetwork and mst is single chromosome only |
maps |
Name or names of the maps to plot in case which = "mareymap", "single_map", or "compare_maps" |
... |
ingored in function call |
A plot.igraph object in the case of "mst" or "mapnetwork" or an interactive ggplotly object otherwise
Dennis van Muijen
1 2 3 4 5 6 7 8 9 10 | ## Not run:
plot(x = MF.obj, which = "mapnetwork", chr = 1)
plot(x = MF.obj, which = "mst", chr = 1)
plot(x = MF.obj, which = "single_map", maps = "consensus")
plot(x = MF.obj, which = "compare_maps", maps = c("Col-0_Cvi-0.csv","Col-0_Sha.csv"), chr = 1:3)
plot(x = MF.obj, which = "mareymap", maps = "Col-0_Bur-0.csv", chr = 1:5)
plot(x = MF.obj, which = "mareymap", maps = "consensus", chr = 1:5)
plot(x = MF.obj, which = "recombination_rate", chr = 1:5)
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.