powered by
Plotting cube in 3D
plot3dCube(cube, sides = "both", rotate = "O")
- cube object
- string parameter determining which side of cube should be plotted, correct values are: top, bottom, and both (default).
- string defaulting initial rotating of cube. Correct are strings containing characters: o, O, p, P. Default is 'O'
plot
# 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