PlotImmigrationFlow {capm} | R Documentation |
Plot immigration flows
Description
Plot rimmigration flows from many sources to one destination.
Usage
PlotImmigrationFlow(data = NULL, source = NULL, destination = NULL,
n.sources = 5, agg.sources.prefix = "Other ",
agg.sources.suffix = " sources", cls = NULL, start.degree = 0,
sources.label.dist = 0.15, sources.label.size = 0.75,
ticks.label.size = 0.7)
Arguments
data |
|
source |
|
destination |
destination's name. |
n.sources |
number of sources to plot. If smaller than the total number of sources |
agg.sources.prefix |
string. If n.sources is smaller than the total number of sources, |
agg.sources.suffix |
|
cls |
|
start.degree |
The starting degree from which the circle begins to draw. It is passed to the |
sources.label.dist |
Data point on y-axis to separate the sources' labels from the circle. It is passed to the |
sources.label.size |
Font size for sources' labels. It is passed to the |
ticks.label.size |
Font size for sources' labels. It is passed to the |
Details
The numbers arround the circle indicate the number of animals.
References
Gu, Z. (2014) circlize implements and enhances circular visualization in R. Bioinformatics. DOI: 10.1093/bioinformatics/btu393
Baquero, O. S., Marconcin, S., Rocha, A., & Garcia, R. D. C. M. (2018). Companion animal demography and population management in Pinhais, Brazil. Preventive Veterinary Medicine.
http://oswaldosantos.github.io/capm
Examples
data(dogs)
cls <- c("blue3", "orange", "skyblue", "darkgreen", "yellow3", "black")
PlotImmigrationFlow(dogs, "acquisition_city", "Pinhais",
cls = cls, agg.sources.suffix = " cities")