Plot the diagram of a Knot object.

Share:

Description

Plot method that produces the knot or link diagram for an object of class 'Knot'

Methods

signature(x = "Knot")

Author(s)

Federico Comoglio, federico.comoglio@bsse.ethz.ch

See Also

Knot-class

Examples

1
2
3
4
5
6
7
8
9
knot <- makeExampleKnot(k = TRUE)
knot <- newKnot(knot)
link <- makeExampleKnot(k = FALSE)
link <- newKnot(link$points3D, link$ends)

plot(knot)
plot(knot, lwd = 2.5) #to emphasize the overcrossings
plot(link)
plot(link, lwd = 2.5) #to emphasize the overcrossings

Want to suggest features or report bugs for rdrr.io? Use the GitHub issue tracker.