Description Usage Arguments Functions References Examples
View source: R/text-annotate.R
Place text in the meme
1 2 3 4 5 | meme_text_top(img, txt, font = "Impact", color = "white",
strokecolor = "black", gravity = "North", size = 44, ...)
meme_text_bottom(img, txt, font = "Impact", color = "white",
strokecolor = "black", gravity = "South", size = 44, ...)
|
img |
An image of class |
txt |
A character string |
font |
string with font family such as |
color |
a valid color string such as |
strokecolor |
a color string adds a stroke (border around the text) |
gravity |
string with gravity value from gravity_types. |
size |
font-size in pixels |
... |
Arguments passed on to
|
meme_text_top
: Place text in center top of meme
meme_text_bottom
: Place text in bottom center of meme
Jeroen Ooms (2018). magick: Advanced Graphics and Image-Processing in R. R package version 2.0. https://CRAN.R-project.org/package=magick
1 2 | meme_get("AllTheThings") %>% meme_text_top("GGPLOT ALL THE THINGS!")
meme_get("OprahGiveaway") %>% meme_text_bottom("EVERYONE GETS A %>%!!!")
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.