plot.cube: Cube Object 2D Plot

Description Usage Arguments See Also Examples

Description

Plots a 2D representation of a cube object.

Usage

1
2
3
4
5
## S3 method for class '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, 
   ...) 

Arguments

x

Any cube object.

colvec

Vector of sticker colors. The default is the cubing.colors option.

recolor

If TRUE, previous rotations are ignored and therefore the cube is recolored.

xlab, ylab

Plot labels.

main

Plot title.

centres

Add identifier text to the centre stickers.

numbers

Add identifier text to all stickers.

text.size

Size of text.

text.col

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.

rand.col

If TRUE then sticker colors are chosen at random and colvec is ignored.

blank

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.

See Also

animate, plot3D.cube, plot.rotCubes, plot.seqCubes

Examples

1
2
aCube <- getCubieCube("Superflip")
## Not run: plot(aCube)

cubing documentation built on May 2, 2019, 10:16 a.m.