Description Usage Arguments Examples
Allows to set scales to the colors used in an array of different Tetris games. See https://en.wikipedia.org/wiki/Tetris#Tetromino_colors for more information of names and color. Name of color scale are "Vadim Gerasimov", "Microsoft", "Sega", "The New Tetris", "The Tetris Company", "Atari", "The Soviet Mind Game", "Tetris DX", "Super Tetris 3", "Tetris Plus" and "The Next Tetris". Defaults to "Vadim Gerasimov". Will pad with white if after 7 colors are used.
1 2 3 4 5 | scale_colour_tetris(..., palette = "Vadim Gerasimov")
scale_color_tetris(..., palette = "Vadim Gerasimov")
scale_fill_tetris(..., palette = "Vadim Gerasimov")
|
... |
Other arguments passed on to [discrete_scale()] to control name, limits, breaks, labels and so forth. |
palette |
Character. Name of color scale. Pick between "Vadim Gerasimov", "Microsoft", "Sega", "The New Tetris", "The Tetris Company", "Atari", "The Soviet Mind Game", "Tetris DX", "Super Tetris 3", "Tetris Plus" and "The Next Tetris". Defaults to "Vadim Gerasimov". |
1 2 3 4 | dsamp <- diamonds[sample(nrow(diamonds), 1000), ]
(d <- ggplot(dsamp, aes(carat, price)) +
geom_point(aes(colour = color)))
d + scale_colour_tetris()
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.