L1centMDS {L1centrality} | R Documentation |
Fitting a Target Plot
Description
L1centMDS()
and plot.L1centMDS()
are used together to draw a target
plot, which is a target-shaped 2D plot that aids in the visual inspection of a
network using the L1
centrality. See Kang and Oh (2024) for a formal definition of a target plot.
Usage
L1centMDS(g, tol, maxiter, verbose)
## S3 method for class 'igraph'
L1centMDS(g, tol = 1e-05, maxiter = 1000, verbose = TRUE)
## S3 method for class 'matrix'
L1centMDS(g, tol = 1e-05, maxiter = 1000, verbose = TRUE)
## S3 method for class 'L1centMDS'
plot(x, zoom = 1, main = NULL, ...)
Arguments
g |
An |
tol |
A numerical tolerance. The gradient descent method terminates if
the relative magnitude of the gradient falls below |
maxiter |
A number of maximum iteration allowances for the gradient descent algorithm. By default set to 1000. |
verbose |
A boolean.
|
x |
An |
zoom |
A numerical value on how much to zoom-in the plot. By default set to 1 (no zoom). |
main |
Title of the plot. If set to |
... |
Further graphical parameters supplied to the internal
|
Details
Denoting the L1
centrality of vertex i
as c_i\in(0,1]
, a point representing that vertex is placed
on a concentric circle with radius r_i =
-\log(c_i)
. Representing each vertex as (r_i, \theta_i)
(in circular
coordinates), the values of \theta_i
are derived using nonmetric
multidimensional scaling proposed in Kruskal (1964a,b). The initial
configuration is derived using classical multidimensional scaling
(stats::cmdscale()
). A gradient descent algorithm is employed in deriving
optimal \theta_i
s.
Value
L1centMDS()
returns an object of class L1centMDS
. It is a list
consisting of four vectors:
-
‘label’: If
g
is anigraph
object,name
attribute of the vertex. Ifg
is a distance matrix, row names (rownames
). Is set toNULL
if missing. -
‘radius’: Radius of a point representing each vertex in the target plot's circular coordinate system, i.e.,
-\log(L_1\text{ centrality})
for each vertex. -
‘theta’: Angle (in radians) of a point representing each vertex in the target plot's circular coordinate system.
-
‘stress’: Stress measure defined in Kruskal (1964a).
plot.L1centMDS()
draws a target plot. Four concentric circles denote
the 1st to 4th quartiles of the radius, and the values of the
L1 centrality quartiles
are shown in red text. Note that red texts denote the
L1 centrality quartiles,
not radius quartiles.
Note
The function L1centMDS()
is valid only for undirected and connected
graphs. Also, L1centMDS()
only considers graphs with equal vertex
multiplicities.
References
S. Kang and H.-S. Oh. On a notion of graph centrality based on L1 data depth. arXiv preprint arXiv:2404.13233, 2024.
J. B. Kruskal. Multidimensional scaling by optimizing goodness of fit to a nonmetric hypothesis. Psychometrika, 29(1):1–27, 1964a.
J. B. Kruskal. Nonmetric multidimensional scaling: a numerical method. Psychometrika, 29(2): 115–129, 1964b.
See Also
L1cent()
for
L1 centrality/prestige,
MASS::isoMDS()
and stats::cmdscale()
for multidimensional scaling
methods.
Examples
parameters <- L1centMDS(MCUmovie, verbose = FALSE)
plot(parameters)