scale_tetris: Scales using original Tetris colors as scales

Description Usage Arguments Examples

Description

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.

Usage

1
2
3
4
5
scale_colour_tetris(..., palette = "Vadim Gerasimov")

scale_color_tetris(..., palette = "Vadim Gerasimov")

scale_fill_tetris(..., palette = "Vadim Gerasimov")

Arguments

...

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".

Examples

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()

EmilHvitfeldt/ggtetris documentation built on May 29, 2019, 2:48 p.m.