I would like to add within the scale_shape_manual() of a ggplot a smiley face for a given category, but simple, so exactly as ":)".
However, I can only find an actual emoji (e.g. here or more options here: https://www.alanwood.net/demos/wgl4.html).
So, for example with a categorical variable with 3 levels, I would have:
scale_shape_manual(values = c(-9786, as.hexmode("3F"), as.hexmode("78")))
But I want that -9786 to be ":)" and not the emoji (codes from: https://www.alanwood.net/demos/wgl4.html)
Any suggestions?
As mentioned by @stefan you can use the
geom_textfunction to display some text (smileys :)) by creating them as alabel. Since you didn't provide reproducible example I tried to create one. Here is some reproducible code:Created on 2024-03-25 with reprex v2.0.2
Data