Learn R Programming

rcube (version 0.5)

plot3dCube: Plotting cube in 3D

Description

Plotting cube in 3D

Usage

plot3dCube(cube, sides = "both", rotate = "O")

Arguments

cube

- cube object

sides

- string parameter determining which side of cube should be plotted, correct values are: top, bottom, and both (default).

rotate

- string defaulting initial rotating of cube. Correct are strings containing characters: o, O, p, P. Default is 'O'

Value

plot

Examples

Run this code
# NOT RUN {
cube <- createCube()
plot3dCube(cube) # generates plot of solved cube
# 'checkerboard' pattern
require(magrittr)
cube %>% twistCube("(LLFFRRBB) x3") %>% plot3dCube()

# }

Run the code above in your browser using DataLab