plot centrality {packdep}R Documentation

Plot closeness and betweenness.

Description

Plot closeness and betweenness from the object returned by centrality.

Usage

  ## S3 method for class 'packdep.centrality':
  plot(x, type = c("betweenness", "closeness"), 
    logscale = c("", "x", "y", "xy"), breaks = 10, freq = FALSE,
    xlab = NULL, ylab = NULL, ...)
  ## S3 method for class 'packdep.centrality':
  hist(x, type = c("betweenness", "closeness"), 
    xlab = NULL, ylab = "frequency", main = "", ...)

Arguments

x an object of class packdep.centrality.
type a character string. Possible choices are closeness (closeness values are plotted) and betweenness (betweenness values are plotted).
logscale a character string, which indicates which axes are to to be plotted on a logarithmic scale (none by default).
breaks the breaks used in the plot; see hist for details.
freq a logical value. If TRUE absolute frequencies (counts) are used; if FALSE relative frequencies are used instead.
xlab a title for the x axis.
ylab a title for the y axis.
main an overall title for the plot.
... other parameters to be passed through to plotting functions.

Author(s)

Radhakrishnan Nagarajan and Marco Scutari

See Also

centrality.

Examples

## Not run: 
d = map.depends()
c = centrality(d)

hist(c, freq = TRUE)
plot(c, freq = FALSE, logscale = "y")
## End(Not run)

[Package packdep version 0.2 Index]