powered by
Plots a 2D representation of a cube object.
# S3 method for cube plot(x, colvec = getOption("cubing.colors"), recolor = FALSE, xlab = "", ylab = "", main = "", centres = TRUE, numbers = FALSE, text.size = 1, text.col = "black", rand.col = FALSE, blank = FALSE, …)
Any cube object.
Vector of sticker colors. The default is the cubing.colors option.
cubing.colors
If TRUE, previous rotations are ignored and therefore the cube is recolored.
TRUE
Plot labels.
Plot title.
Add identifier text to the centre stickers.
Add identifier text to all stickers.
Size of text.
Color of text. The default is black but if you are using black stickers then purple is a good choice. White does not read well on yellow stickers.
If TRUE then sticker colors are chosen at random and colvec is ignored.
colvec
If TRUE then all colors are set to ghost white. This is designed to create a template plot for the sticker naming schemes.
Other parameters to be passed through to plotting functions.
animate, plot3D.cube, plot.rotCubes, plot.seqCubes
animate
plot3D.cube
plot.rotCubes
plot.seqCubes
# NOT RUN { aCube <- getCubieCube("Superflip") # } # NOT RUN { plot(aCube) # }
Run the code above in your browser using DataLab