##3D plot of the Hopf link
hopf <- matrix(c(0.000084, -1.667027, -0.000300,
0.179585, 0.249735, 0.991541,
-0.179478, 0.250355, -0.991211,
0.000084, -1.667027, -0.000300,
-0.991561, -0.250457, 0.179413,
-0.000415, 1.666817, 0.000107,
0.991784, -0.249435, -0.179541,
-0.991561, -0.250457, 0.179413),
ncol = 3, byrow = TRUE)
plotKnot3D(hopf, ends = 4, text = FALSE, showNC = FALSE, lwd = 5, radius = 0.05)
##Stevedore knot
data(Rolfsen.table, package = "Rknots")
stevedore <- Rolfsen.table$"6.1"
plotKnot3D(stevedore, ends = c(), text = FALSE, showNC = FALSE,
radius = 0.05, lwd = 5)
#The same plot, without specifying any parameter for the rgl primitive shapes
# (the default sphere radius is 1).
plotKnot3D(stevedore, ends = c(), text = FALSE)
Run the code above in your browser using DataLab