knotplot: Plotting of knots

Description Usage Arguments Details Author(s) Examples

Description

Routines to plot projections of knots with a wide range of user-settable options

Usage

1
2
3
4
5
knotplot(x, ou, gapwidth=1, n=100, lwd=8, add=FALSE, ...)
knotplot_old(x, ou, gap=20, n=100, lwd=8, add=FALSE, ...)
knotplot2(x, rainbow=FALSE, seg=FALSE, text=FALSE, cross=FALSE, ink=FALSE,
                node=FALSE, width=TRUE, all=FALSE, n=100, circ=1000,
                lwd=8, add=FALSE, ...)

Arguments

x

Description of a knot, coerced to a controlpoints object and a minobj object

rainbow,seg,text,cross,ink,node,all,width,circ

Variables controlling sundry knotplot2() features; see details

ou

An overunder object, useful if overunder information not included in argument x

gap,gapwidth

Variables controlling visual representation of strand crossings; see details

n

Number of points on each Bezier curve

lwd

Width of line to use

add

Boolean, with default FALSE meaning to set up a new plot, and TRUE meaning to just add points and lines to an existing plot

...

Further arguments, passed to plot() and points()

Details

Function knotplot() is useful for production-quality plotting of knots with crossings indicated by the understrand having a gap; function knotplot2() is more useful for development. Function knotplot_old() is included for backward compatibility and is possibly more robust than knotplot().

Function knotplot() works by setting a suitable length of the understrand to NA which results in it not being plotted.

For knotplot():

For knotplot2():

The gap argument of knotplot_old() is a the same as the gapwidth argument of knotplot() but gap is measured in the same units as the plot().

Author(s)

Robin K. S. Hankin

Examples

1
2
3

RobinHankin/knotR documentation built on Oct. 26, 2018, 10:05 a.m.