powered by
Place text in the meme
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, ...)
meme_text_bottom(img, txt, font = "Impact", color = "white", strokecolor = "black", gravity = "South", size = 44, ...)
An image of class magick_image. See meme_get().
magick_image
meme_get()
A character string
string with font family such as "sans", "mono", "serif", "Times", "Helvetica", "Trebuchet", "Georgia", "Palatino" or "Comic Sans".
"sans"
"mono"
"serif"
"Times"
"Helvetica"
"Trebuchet"
"Georgia"
"Palatino"
"Comic Sans"
a valid color string such as "navyblue" or "#000080"
"navyblue"
"#000080"
a color string adds a stroke (border around the text)
string with gravity value from gravity_types.
font-size in pixels
Arguments passed on to magick::image_annotate
magick::image_annotate
geometry string with location relative to gravity
gravity
rotates text around center point
a color string for background color that annotation text is rendered on.
meme_text_top: Place text in center top of meme
meme_text_top
meme_text_bottom: Place text in bottom center of meme
meme_text_bottom
Jeroen Ooms (2018). magick: Advanced Graphics and Image-Processing in R. R package version 2.0. https://CRAN.R-project.org/package=magick
# NOT RUN { meme_get("AllTheThings") %>% meme_text_top("GGPLOT ALL THE THINGS!") meme_get("OprahGiveaway") %>% meme_text_bottom("EVERYONE GETS A %>%!!!") # }
Run the code above in your browser using DataLab