plot dependencies {packdep}R Documentation

Plot dependencies and reverse dependencies.

Description

Plot dependencies and reverse dependencies from the object returned by dependencies.

Usage

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

Arguments

x an object of class packdep.dependencies.
type a character string. Possible choices are dependencies (dependencies are plotted) and reverse (reverse dependencies 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

dependencies.

Examples

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

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

[Package packdep version 0.2 Index]