gsubway | R Documentation |
This igraph graph object represents the number of subway passengers in Seoul, Korea for January 2021.
Consider the subway stations as vertices and railroads between the stations as the edges.
The number of passengers for each station is regarded as the graph signal.
Seoul subway ridership data can be obtained at https://www.seoulmetro.co.kr
.
data(gsubway)
igraph graph object. The vertex attributes are longitude x
, latitude y
, and the number of passengers z
for each station.
data(gsubway)
# attributes
names(vertex_attr(gsubway)); names(edge_attr(gsubway)); names(graph_attr(gsubway))
# standardizing the graph signal
V(gsubway)$z <- c(scale(V(gsubway)$z))
# statistical graph empirical mode decomposition (SGEMD) with boundary treatment
out <- sgemd(gsubway, nimf=1, smoothing=TRUE, boundary=TRUE, connweight="graph")
# display of a signal, denoised signal by SGEMD
gplot(gsubway, size=3)
gplot(gsubway, out$residue, size=3)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.