migration: Plot Migration Map

Description Usage Arguments Value Examples

View source: R/fun-migration.R

Description

Plot Migration Map

Usage

1
2
3
4
5
6
migration(data, start, destination, choice = NULL,
  color.variable = NULL, size.variable = NULL, type.variable = NULL,
  lgd.color.title = NULL, lgd.size.title = NULL,
  lgd.type.title = NULL, size = 1, color = c("black", "red"),
  type = 1, fill = "#e5e5e5", border.color = "black",
  border.size = 0.5, basemap = TRUE)

Arguments

data

data

start

start position

destination

destination

choice

default is NULL

color.variable

color variable

size.variable

size variable

type.variable

type variable

lgd.color.title

colored legend title

lgd.size.title

sized legend title

lgd.type.title

typed legend title

size

size for all line, default is 1

color

color, which be more than one, default is black and red

type

line type, default is 1

fill

fill color for base map

border.color

map border color

border.size

map border size

basemap

logical, default is TRUE

Value

a ggplot2 migration map

Examples

1
plot(1:10)

yikeshu0611/ggrisk documentation built on Feb. 13, 2020, 10:46 a.m.