# load example data
iron <- read_cross2(system.file("extdata", "iron.zip", package="qtl2"))
# positions to interpolate from cM to Mbp
tointerp <- list("7" = c(pos7.1= 5, pos7.2=15, pos7.3=25),
"9" = c(pos9.1=20, pos9.2=40))
interp_map(tointerp, iron$gmap, iron$pmap)
Run the code above in your browser using DataLab