Learn R Programming

Rknots (version 1.3.2)

plot-methods: Plot the diagram of a Knot object.

Description

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

Arguments

Methods

See Also

Knot-class

Examples

Run this code
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

Run the code above in your browser using DataLab