Learn R Programming

mapfuser (version 0.1.2)

plot.mapfuser: Visualise mapfuser object data

Description

Visualise mapfuser object data

Usage

# S3 method for mapfuser
plot(x, which = c("mapnetwork", "mst", "compare_maps",
  "single_map", "mareymap", "recombination_rate"), chr = NULL, maps = NULL,
  ...)

Arguments

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

Value

A plot.igraph object in the case of "mst" or "mapnetwork" or an interactive ggplotly object otherwise

Examples

Run this code
# 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)
# }

Run the code above in your browser using DataLab