mRagraph {classGraph} | R Documentation |
Construct a Laid-Out Graph for Plotting
Description
My constructor of an Ragraph
object, a kind of “laid-out” graph, from package
Rgraphviz. This allows more customization in plotting than just
calling plot(gr, ...)
for a
graph
object from package
graph.
Usage
mRagraph(gr, lType, fixedsize = FALSE,
fill = c("lightblue", "gray90"),
color = c("blue3", "gray60"),
labcol = c("blue3", "green4", "purple"))
Arguments
gr |
an R object of class |
lType |
a string specifying the layout type,
see |
fixedsize |
logical indicating if the ellipses should all get the same size – or should rather adapt to the situation. |
fill |
character vector of length 2.... |
color |
character vector of length 2.... |
labcol |
vector of labels to be used .... |
Value
an object of class Ragraph
,
produced by an appropriate call to agopen
.
Author(s)
Martin Maechler
See Also
the customized plotting function plotRag
.
Examples
if(require("Matrix")) {
trMatrix <- classTree("Matrix")
trMatrix
RtrM <- mRagraph(trMatrix)
RtrM # (the show method will hopefully improve)
str(RtrM, max=2) # shows a bit more
plot(RtrM)# 'graph' method -> using 'Rgraphviz' package
}
[Package classGraph version 0.7-6 Index]