## S3 method for class 'relation':
plot(x,
attrs = list(graph = list(rankdir = "BT"),
edge = list(arrowsize = NULL),
node = list(shape = "rectangle",
fixedsize = FALSE)),
limit = 6L,
labels = NULL,
main = NULL,
type = c("simplified", "raw"),
...)## S3 method for class 'relation_ensemble':
plot(x,
attrs = list(list(graph = list(rankdir = "BT"),
edge = list(arrowsize = NULL),
node = list(shape = "rectangle",
fixedsize = FALSE))),
type = "simplified",
limit = 6L,
labels = NULL,
...,
layout = NULL, main = NULL)
relation or relation_ensemble.graphNEL. For the
relation_ensemble method, it is a list of such objects,
recycled as needed.LABELS). Recycled as needed for relation
ensembles.NULL, the layout is
square.graphNEL plot method.NULL,
the title(s) is (are) set to the type of the visualized relation(s).relation,
transitive_reductionif(require("Rgraphviz")) {
## simple example
plot(as.relation(1 : 5))
## inclusion on a power set:
ps <- 2 ^ set("a", "b", "c")
inc <- set_outer(ps, set_is_subset)
R <- relation(incidence = inc)
plot(relation_ensemble(R, R), type = c("simplified", "raw"))
}Run the code above in your browser using DataLab