Internet Memes for Data Analysts

Generates internet memes that optionally include a superimposed inset plot and other atypical features, combining the visual impact of an attention-grabbing meme with graphic results of data analysis. The package differs from related packages that focus on imitating and reproducing standard memes. Some packages do this by interfacing with online meme generators whereas others achieve this natively. This package takes the latter approach. It does not interface with online meme generators or require any authentication with external websites. It reads images directly from local files or via URL and meme generation is done by the package. While this is similar to the 'meme' package available on CRAN, it differs in that the focus is on allowing for non-standard meme layouts and hybrids of memes mixed with graphs. While this package can be used to make basic memes like an online meme generator would produce, it caters primarily to hybrid graph-meme plots where the meme presentation can be seen as a backdrop highlighting foreground graphs of data analysis results. The package also provides support for an arbitrary number of meme text labels with arbitrary size, position and other attributes rather than restricting to the standard top and/or bottom text placement. This is useful for proper aesthetic interleaving of plots of data between meme image backgrounds and overlain text labels. The package offers a selection of templates for graph placement and appearance with respect to the underlying meme. Graph templates also permit additional template-specific customization. Animated gif support is provided but this is optional and functional only if the 'magick' package is installed. 'magick' is not required unless gif functionality is desired.


News

memery 0.4.0 (Release date: 2018-01-11)

  • Update example Shiny app to account for presence/absence of magick package and launch an appropriately configued app in the browser (gif/no gif support and related options).
  • Example app test plot now only generates when app is launched in an R session where there are no ggplot objects in the global environment created by the user. If there are, then the test plot is not made. The test plot is also now only generated within the server environment and not added to the global environment.
  • Added app and animated gif content to introduction vignette.
  • Updated functions, examples and documentation.

memery 0.3.1.9000

  • Added magick to DESCRIPTION file Suggests field. The package is not required unless you are trying to read a gif image and save a gif meme using meme_gif. I consider this a minor use case so I have given memes based around gifs a unique function that wraps around meme rather than adding the gif-specific functionality directly to meme. If using meme_gif, you will need to install magick if not already installed. magick depends on the ImageMagick software so you will also have to install this dependency on your system. Aside from meme_gif, there is no need for ImageMagick.
  • meme_gif accepts a frames per second argument, fps, and a frame number argument, frame.
  • Added example Shiny app, launched via memeApp.
  • Updated unit tests, documentation and vignette.

memery 0.3.1 (Release date: 2017-11-14)

  • Updated unit tests. A couple tests requiring installation of other font families are run on Windows and Mac as well as on Linux via Travis-CI where pre-installation of fonts can be ensured. Otherwise these tests are skipped (Other Linux environments as well as Solaris).
  • dplyr packaged removed since it is no longer used (at this time) in examples and tests. This was leading to a NOTE on Mac builds.

memery 0.3.0.9000

  • Copied DESCRIPTION file Description field content to memery help documentation details.
  • Updated readme.
  • Updated vignette.

memery 0.3.0 (Release date: 2017-11-09)

  • Breaking changes: updated some arguments for meme and text_position.
  • Attempts to load Impact font on package load or to use any fonts with meme when not installed on the system now fail gracefully, falling back on serif.
  • showtext, showtextdb and sysfonts are now fully loaded ahead of memery.
  • Font sizing adjustments have been made to attempt to maintain as consistent as possible a text display on jpg vs. png outputs. Better anti-aliasing may be achieved using png, particularly regarding the text, though they will be fairly similar.
  • Added introduction vignette content.
  • Added templates to inset_background and inset_position helpers.
  • Added size and margin arguments to inset_position for additional user control of inset templates.
  • Added resource image file for examples and testing.
  • Added unit tests.
  • Minor bug fixes.
  • Update documentation.

memery 0.2.0

  • Breaking changes: updated several meme arguments.
  • Text size, font family, color and shadow color may now be vectors like label.
  • Further improved viewport behavior and inset plot integration along with integration of semi-transparent rounded-corner background box for option plot region.
    • The new box can be adjusted in terms of background and border color and corner radius via inset_bg in meme.
    • Updated memetheme.
  • Added convenience functions that provide the default settings for meme label positioning and inset plot positioning and background style.
  • Minor bug fixes.
  • Update documentation.

memery 0.1.6

  • Vectorized label and label_pos arguments for meme text.
  • Improved viewport behavior.
  • Update documentation.

memery 0.1.5

  • Refactored meme code, add/remove arguments, add error checking.
  • Updated documentation.

memery 0.1.0

  • Added meme function.
  • Added documentation.
  • Updated readme.

memery 0.0.0.9000

  • Initialized package scaffolding.

Reference manual

It appears you don't have a PDF plugin for this browser. You can click here to download the reference manual.

install.packages("memery")

0.5.0 by Matthew Leonawicz, a month ago


https://github.com/leonawicz/memery


Report a bug at https://github.com/leonawicz/memery/issues


Browse source code at https://github.com/cran/memery


Authors: Matthew Leonawicz [aut, cre]


Documentation:   PDF Manual  


MIT + file LICENSE license


Imports sysfonts, grid, png, jpeg, Cairo, ggplot2, cowplot, magrittr, purrr, shiny, shinycssloaders, shinyBS, colourpicker

Depends on showtext

Suggests testthat, knitr, rmarkdown, covr, magick, lintr


See at CRAN