In this short article I introduce the knotR package, which creates two dimensional knot diagrams optimized for visual appearance.
The knotR package is a systematic R-centric suite of software for the creation of production-quality artwork of knot diagrams.
To install the current development version use devtools:
To install the CRAN version:
To create visually pleasing diagrams of knot projection using Bezier curves and optimization routines to maximize appearance-related objective functions.
First, create an svg file in inkscape; many working examples provided in the inst/ directory, and detailed instructions provided in knotR-package.Rd.
Then use the knotoptim() function to smoothen the knot path, and to specify the details of the crossings. Many working examples provided in the inst/ directory.
For more detail, see the package vignette
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.