map_seq: Map sequence

Description Usage Arguments Examples

Description

Returns a list of map objects, showing estimated locations for all living pedigree members for a given individual ggmap provided plot of a map showing the estimated locations of living pedigree members for a given ID at a given date. The size, shape and color of symbols represent for a specific individual's age, sex, and relatedness to an indiviudal x.

Usage

1
2
3
map_seq(my_id = NULL, kin_list = NULL, my_map = NULL, geo_df = NULL,
  return_gg = TRUE, map_extent = "device", scale_factor = 1,
  limit_n = NULL)

Arguments

my_id

The individual ID of interests

kin_list

A nested list of dataframes providing the variables 'id', 'sex', 'relmom', 'reldad', 'age', and 'kinloc'

my_map

A ggmap object

geo_df

A dataframe with geopositional data for locations

return_gg

A logical indicator whether the plots should be returned (if TRUE) or displayed (if FALSE)

map_extent

How much of the plot should the map take up? (default is "device")

scale_factor

Ratio of scaling in relation to 1 (Default).

Examples

1
2
3
4
## Not run: 
plot_kinmap(40, "1860-01-01", df_ind, relate, evmat, geo$gmap, geo$df)

## End(Not run)

johow/kinlab documentation built on July 5, 2019, 4:23 p.m.