plot takes a matrix representing a family of sets (knowledge states)
or a surmise relation and a color vector, and draws a Hasse diagram.
If the color vector is NULL the states are drawn in green, the items in
the relation are drawn in orange.
# S3 method for kmfamset
plot(
x,
...,
horizontal = FALSE,
colors = NULL,
keepNames = TRUE,
itemsep = ",",
braces = TRUE,
vertexshape = "oval",
arrowhead = "none",
arrowtail = "none",
edgelabel = FALSE,
verbose = 0
)# S3 method for kmneighbourhood
plot(
x,
...,
horizontal = FALSE,
colors = c("#eeee00", "#aaccff", "#bbffbb"),
keepNames = TRUE,
itemsep = ",",
braces = TRUE,
vertexshape = "oval",
arrowhead = "none",
arrowtail = "none",
edgelabel = FALSE,
state,
verbose = 0
)
# S3 method for kmsurmiserelation
plot(
x,
...,
horizontal = FALSE,
colors = NULL,
keepNames = TRUE,
vertexshape = "circle",
arrowhead = "none",
arrowtail = "none",
verbose = 0
)
Binary matrix representing a family of sets
Optional inherited parameters
Boolean defining orientation of the graph, default FALSE
Color value or vector (default NULL).
Keep item names (default TRUE)
Item separator in sets (default ','; only for families of states)
Put braces around vertices (default TRUE; only for families of states)
Shape of the vertex objects, e.g. circle, oval, box, or none. See Graphviz Node Shapes for a complete list of possible values.
Form of the arrow head, e.g. vee or none (default). See Graphviz Arrow Types for a complete list of possible values. This may be used for vertical graphs although none is the standard there.
Form of the arrow tail, e.g. vee or none (default). See Graphviz Arrow Types for a complete list of possible values. This should be used for horizontal graphs.
Boolean whether to label the edges of the diagram (default FALSE)
Verbosity level (0 (default), 1, or 2)
Knowledge state whose neighbourhood is to be pictured
Other Plotting knowledge structures:
kmcolors()