View source: R/mkClassHierarchy.R
mkClassGraph | R Documentation |
This constructs a hierarchical structure representing the inheritance relationships between between a collection of S4 classes.
mkClassGraph(pkg, addIs = TRUE, classes = getClasses(pkg),
classDefs = structure(lapply(classes, getClass), names = classes))
pkg |
the name of the R package in which to find the S4 class definitions |
addIs |
a logical value controlling whether we also add the explicit 'is' relationships
defined via |
classes |
the names of the S4 classes of interest |
classDefs |
the definitions of the S4 classes of interest |
A data.frame
with two columns to
and from
giving the directed edges for the graph.
Duncan Temple Lang (?)
The methods
package.
if(require(CodeDepends)) {
g = mkClassGraph("package:CodeDepends")
if(require(igraph))
plot(as(g, "igraph"), cex.arrow.size = .3)
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.