invert.map: Invert the order of locimap from an estimated map.

Description Usage Arguments Details Value

Description

Takes the locimap from estimate.maps a dataframe containing names and positions and any other information in increasing order of distance and inverts the order.

Usage

1
invert.map(locimap)

Arguments

locimap

a data frame containing the markers names and positions

Details

The map should be a data frame with a column called 'position'. It should have a starting marker a position zero. The function then inverts the distances from so that the marker at maximum distance from the starting marker (the end marker) is at distance 0 and the original starting marker is now at the maximum distance. It also inverts the order of the rows in the data frame. Thus if the markers were originally in order of increasing distance from the starting marker they will now be in order of increasing distance from the end marker.

Value

The original data frame in inverted order with the distances inverted so that the end marker is now the starting marker.


MDSMap documentation built on May 1, 2019, 6:51 p.m.