hasse: Hasse Diagram of Set of Ordered Relations

hasseR Documentation

Hasse Diagram of Set of Ordered Relations

Description

A function to plot the Hasse Diagram of partially ordered relations.

Usage

hasse(x, attrs = NULL, main = NULL, incmp, cex.main, bg, mar, shape, col, 
      col0, fcol, ecol, lty, lbs, ffamily, fstyle, fsize, col.main, sep, ...)

Arguments

x

a matrix representing ordered relations

attrs

(optional) attributes of the diagram

main

(optional) title of the diagram

incmp

(logical) whether or not incomparable elements should be included in the lattice diagram

cex.main

(optional) font size of diagram's title

bg

(optional) background color of diagram

mar

(optional) margins of plot

shape

(optional) shape of vertices

col

(optional) color of vertices

col0

(optional) color of vertices' contour

fcol

(optional) color of text's vertices

ecol

(optional) color of edges

lty

(optional) shape of edges

lbs

(optional) labels of elements in partially ordered set

ffamily

(optional) font family of vertex labels

fstyle

(optional) font style of vertex labels with options:

  • bold

  • italic

  • bolditalic

fsize

(optional) font size of vertex labels

col.main

(optional) font color of main title

sep

(optional) pair separator for pairwise relations inside intents and extents

...

(optional) additional graphical items

Details

A Hasse diagram is a pictorical device to represent systems of partially ordered relations where the hasse function provides arguments for visual manipulation of the diagram. An example of a partially ordered system is the partial order table that is the outcome of the ‘strings’ option in the partial.order function.

Value

A plot of a Hasse diagram with specified settings for a partial or a linear order of relations.

Warning

Requires Rgraphviz package installed.

Note

Roman numerals are given for elements when the partial order table have NULL dimnames.

Author(s)

Antonio Rivero Ostoic

See Also

diagram, partial.order, strings, galois, green.rel, diagram.levels, as.strings.

Examples

# load a dataset
data("incubA")

# given e.g. a partial order table in the object 'po'
po <- as.strings(incubA$IM) |> 
  partial.order(type="strings")

# plot the order relation as a Hasse diagram
## Not run: if(require(Rgraphviz)) {
plot(hasse(po))
}
## End(Not run)


multiplex documentation built on Sept. 30, 2024, 5:07 p.m.