Description Usage Arguments Value Examples
View source: R/fun-migration.R
Plot Migration Map
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)
|
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 |
a ggplot2 migration map
1 | plot(1:10)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.