Learn R Programming

onemap (version 2.1.1)

draw_map: Draw a genetic map

Description

Provides a simple draw of a genetic map.

Usage

draw_map(map.list, horizontal = FALSE, names = FALSE, grid = FALSE,
  cex.mrk = 1, cex.grp = 0.75)

Arguments

map.list

a map, i.e. an object of class sequence with a predefined order, linkage phases, recombination fraction and likelihood; also it could be a list of maps.

horizontal

if TRUE, indicates that the map should be plotted horizontally. Default is FALSE

names

if TRUE, displays the names of the markers. Default is FALSE

grid

if TRUE, displays a grid in the background. Default is FALSE

cex.mrk

the magnification to be used for markers.

cex.grp

the magnification to be used for group axis annotation.

Examples

Run this code
# NOT RUN {
# }
# NOT RUN {
 #outcross example
  data(example_out)
  twopt <- rf_2pts(example_out)
  lg<-group(make_seq(twopt, "all"))
  maps<-vector("list", lg$n.groups)
  for(i in 1:lg$n.groups)
     maps[[i]]<- make_seq(order_seq(input.seq= make_seq(lg,i),twopt.alg =
   "rcd"), "force")
  draw_map(maps, grid=TRUE)
  draw_map(maps, grid=TRUE, horizontal=TRUE)

  #F2 example
  data(onemap_example_f2)
  twopt<-rf_2pts(onemap_example_f2)
  lg<-group(make_seq(twopt, "all"))
  maps<-vector("list", lg$n.groups)
  for(i in 1:lg$n.groups)
     maps[[i]]<- make_seq(order_seq(input.seq= make_seq(lg,i),twopt.alg =
   "rcd"), "force")
  draw_map(maps, grid=TRUE)
  draw_map(maps, grid=TRUE, horizontal=TRUE)

# }
# NOT RUN {
# }

Run the code above in your browser using DataLab