flowgini: Analysis of flow concentration (Gini coefficient)

Description Usage Arguments Details Value References Examples

View source: R/flowgini.R

Description

Calculates Gini coefficient, plot Lorenz curve and threshold the matrice according to a global concentration criterion for mapping flow intensity or flow density.
To be use before flowanalysis

Usage

1
flowgini(ODpts, origin, destination, valflow, lorenz.plot)

Arguments

ODpts

the input dataset with : nodes code, flow values and XY coordinates

origin

ID origin place, in long format

destination

ID destination place, long format

valflow

flow value between origin and destination places

lorenz.plot

to plot or the Lorenz curve. See Details

Details

flowgini(...,lorenz.plot = TRUE) for ploting Lorenz curve associate to the gini coefficient, from cumulated flows and links.

Value

plot Lorenz curve for the cumulated flow and links : flowgini(...,gini.plot = TRUE),warning : the function must be not assign a variable

value of the Gini's coefficent and the table : table<-flowgini(...,missing(gini.plot) or gini.plot = FALSE )

References

Bahoken Françoise, 2016,« La cartographie d’une sélection globale de flux, entre ‘significativité’ et ‘densité’ », Netcom Online, 30-3/4 | 2016, Online since 23 March 2017, connection on 05 May 2019. URL : http://journals.openedition.org/netcom/2565 ; DOI : 10.4000/netcom.2565.
Grasland Claude, 2014, "Flows analysis carto", unpublished R functions.

Examples

1
2
3
4
5
6
7
8
library(cartograflow)
data(flowdata)
# Computes Gini's coefficent
tabgini <- flowgini(ODpts = flows, origin = "i", destination = "j", 
                     valflow = "Fij", lorenz.plot = FALSE)
# Plot Lorenz curve
flowgini(ODpts = flows, origin = "i", dest = "j", valflow = "Fij", lorenz.plot = TRUE)
# See \link{flowanalysis} for viewing the tab_gini table

fbahoken/cartogRaflow documentation built on Oct. 15, 2021, 11:09 a.m.