Title Create Meme Version 0.0.7 Package meme November 2, 2017 The word 'Meme' was originated from the book, 'The Selfish Gene', authored by Richard Dawkins (1976). It is a unit of culture that is passed from one generation to another and correlates to the gene, the unit of physical heredity. The internet memes are captioned photos that are intended to be funny, ridiculous. Memes behave like infectious viruses and travel from person to person quickly through social media. The 'meme' package allows users to make custom memes. Depends R (>= 3.4.1) Imports ggplot2, graphics, grdevices, grid, magick, methods, utils Suggests cowplot, ggimage (>= 0.0.7), knitr, prettydoc, shadowtet VignetteBuilder knitr Encoding UTF-8 LazyData true ByteCompile true License Artistic-2.0 URL https://github.com/guangchuangyu/meme/ BugReports https://github.com/guangchuangyu/meme/issues RoygenNote 6.0.1 NeedsCompilation no Author Guangchuang Yu [aut, cre] (0000-0002-6485-8781) Maintainer Guangchuang Yu <guangchuangyu@gmail.com> Repository CRAN Date/Publication 2017-11-02 07:25:27 UTC 1
2 asp R topics documented: asp.............................................. 2 grid.echo.meme....................................... 3 meme............................................ 3 memegrob......................................... 4 meme_save......................................... 5 mmplot........................................... 6 mm_caption......................................... 6 print.meme......................................... 7 Inde 8 asp asp aspect ratio of meme asp() asp ratio Eamples f <- system.file("icon.png", package="meme") <- meme(f, "meme", "produced by meme package") asp()
grid.echo.meme 3 grid.echo.meme grid.echo.meme grid.echo method for ## S3 method for class 'meme' grid.echo( = NULL, newpage = TRUE, prefi = NULL) newpage prefi not use in this method not use in this method Details using the solution <https://stackoverflow.com/a/18551959/3844636> to not importing grid.echo generics from gridgraphics for easy installation, since gridgraphics has system requirement of ImageMagick <https://github.com/cran/gridgraphics/blob/master/description#l14>. this method is just a hack for making cowplot to support, and not used elsewhere. meme meme create meme meme(img, upper = "", lower = "", size = "auto", color = "white", font = "Impact", vjust = 0.1, bgcolor = "black", r = 0.2)
4 memegrob img upper lower size color font vjust bgcolor r path or url upper tet lower tet size of tet color of tet font family of tet vertical adjustment of captions background color of shadow tet ratio of shadow tet grob object Eamples f <- system.file("angry8.jpg", package="meme") meme(f, "code", "all the things!", font = "Helvetica") memegrob memegrob convert meme to grob object memegrob() grob object
meme_save 5 Eamples f <- system.file("angry8.jpg", package="meme") <- meme(f, "code", "all the things!") memegrob() meme_save meme_save save meme plot meme_save(, file, width = NULL, height = NULL,...) file width height meme output output file width of graph height of graph... additional arguments for ggsave Eamples f <- system.file("angry8.jpg", package="meme") <- meme(f, "code", "all the things!") outfile <- tempfile(fileet = ".png") meme_save(, outfile)
6 mm_caption mmplot mmplot plot the image for meme (captions to be added) mmplot() image file mm_caption mm_caption add caption layer for meme mm_caption(upper = NULL, lower = NULL,...) upper upper caption lower lower caption... additional parameters to set caption
print.meme 7 print.meme print method for print method for ## S3 method for class 'meme' print(, size = NULL, color = NULL, font = NULL, upper = NULL, lower = NULL, vjust = NULL, bgcolor = NULL, r = NULL, newpage = is.null(vp), vp = NULL, newdev = FALSE,...) ## S3 method for class 'meme' plot(, size = NULL, color = NULL, font = NULL, upper = NULL, lower = NULL, vjust = NULL, bgcolor = NULL, r = NULL, newpage = is.null(vp), vp = NULL, newdev = FALSE,...) size color font upper lower vjust bgcolor r newpage vp newdev size of tet color of tet font family of tet upper tet lower tet vertical adjustment ratio background color of shadow tet ratio for shadow tet draw new (empty) page first? viewport to draw plot in open new graphic device?... other arguments not used by this method Eamples f <- system.file("angry8.jpg", package="meme") <- meme(f, "code", "all the things!", font = "Helvetica") print()
Inde asp, 2 grid.echo.meme, 3 meme, 3 meme_save, 5 memegrob, 4 mm_caption, 6 mmplot, 6 plot.meme (print.meme), 7 print.meme, 7 8