getFlightGraph {graphicalExtremes} | R Documentation |
Get flight graph
Description
Convert the info from flights$flightCounts
to an igraph::graph
object.
Usage
getFlightGraph(IATAs = NULL, years = NULL, minNFlights = 1, directed = FALSE)
Arguments
IATAs |
Character vector. IATA codes of airports to include |
years |
Character vector. Years to include (as strings). |
minNFlights |
Numerical scalar. Minimum number of flights on a connection to be included as an edge. |
directed |
Logical scalar. Whether flights A->B and B->A should be considered separately. |
Value
An igraph::graph
object containing a vertex for each airport
and an edge whenever there are at least minNFlights
between two airports.
See Also
Other flight data related topics:
flightCountMatrixToConnectionList()
,
flights
,
getFlightDelayData()
,
plotFlights()
Examples
g <- getFlightGraph()
[Package graphicalExtremes version 0.3.2 Index]