Learn R Programming

GSD (version 1.0.0)

gsubway: Seoul Subway Ridership Data

Description

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.

Usage

data(gsubway)

Arguments

Format

igraph graph object. The vertex attributes are longitude x, latitude y, and the number of passengers z for each station.

Examples

Run this code
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) 

Run the code above in your browser using DataLab