Skip to contents

Insert Arrow emojis

Usage

shape(color, type)

Arguments

color

Character, denoting the color of the shape. Must be one of "red", "orange", "yellow", "green", "blue", "purple", "brown", "black", "white".

type

Character, denoting the type of shape. Must be one of "heart", "circle", or "square.

Details

This function is vectorized.

#@return Character vector of emojis.

Examples

shape("yellow", "heart")
#> [1] "๐Ÿ’›"

shape("yellow", c("heart", "circle", "square"))
#> [1] "๐Ÿ’›" "๐ŸŸก" "๐ŸŸจ"

shape(color = c("red", "orange", "yellow", "green", "blue",
                "purple", "brown", "black", "white"),
      type = "circle")
#> [1] "๐Ÿ”ด" "๐ŸŸ " "๐ŸŸก" "๐ŸŸข" "๐Ÿ”ต" "๐ŸŸฃ" "๐ŸŸค" "โšซ" "โšช"

outer(
  c("red", "orange", "yellow", "green", "blue",
    "purple", "brown", "black", "white"),
  c("heart", "circle", "square"),
  shape
)
#>       [,1] [,2] [,3]
#>  [1,] "โค๏ธ"  "๐Ÿ”ด" "๐ŸŸฅ"
#>  [2,] "๐Ÿงก" "๐ŸŸ " "๐ŸŸง"
#>  [3,] "๐Ÿ’›" "๐ŸŸก" "๐ŸŸจ"
#>  [4,] "๐Ÿ’š" "๐ŸŸข" "๐ŸŸฉ"
#>  [5,] "๐Ÿ’™" "๐Ÿ”ต" "๐ŸŸฆ"
#>  [6,] "๐Ÿ’œ" "๐ŸŸฃ" "๐ŸŸช"
#>  [7,] "๐ŸคŽ" "๐ŸŸค" "๐ŸŸซ"
#>  [8,] "๐Ÿ–ค" "โšซ" "โฌ›"
#>  [9,] "๐Ÿค" "โšช" "โฌœ"