Learn R Programming

cubing (version 1.0-5)

plot.cube: Cube Object 2D Plot

Description

Plots a 2D representation of a cube object.

Usage

# 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, 
   …)

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

Run this code
# NOT RUN {
aCube <- getCubieCube("Superflip")
# }
# NOT RUN {
plot(aCube)
# }

Run the code above in your browser using DataLab