Learn R Programming

kst (version 0.5-4)

plot: Plot Family of Sets

Description

Plots a Hasse diagram of a family of sets

Usage

# S3 method for kstructure
plot(x, ...)
  # S3 method for kbase
plot(x, ...)
  # S3 method for kfamset
plot(x, ...)

Arguments

x

An R object of class kstructure, kbase, or kfamset.

...

Other arguments to be passed to methods.

Details

plot takes an arbitrary family of sets and plots a Hasse diagram.

References

Doignon, J.-P., Falmagne, J.-C. (1999) Knowledge Spaces. Heidelberg: Springer Verlag.

See Also

kstructure, kbase, kfamset

Examples

Run this code
fs <- kfamset(set(set("a"), set("a","b"), set("a","c"), set("d","e"), 
   set("a","b","d","e"), set("a","c","d","e"), set("a","b","c","d","e")))
if(require("Rgraphviz")) {plot(fs)}

Run the code above in your browser using DataLab