plot.giphy: Plot a GIF

Description Usage Arguments Details Author(s) Examples

Description

Plots the giphy into your view-port.

Usage

1
2
## S3 method for class 'giphy'
plot(x, n = 1, type = "original", ...)

Arguments

x

a giphy object returned from one of the giphy commands.

n

When the giphy contains multiple images, the index of the image requested.

type

GIF size, either original or downsized. Default is original.

...

arguments to be passed to magick::image_read.

Details

Plotting a giphy requires installation of the imagemagick program. When a giphy object is returned from one of the calls, the user may plot the first object returned (default n = 1) or, may select one of the images returned. The limit is generally 25, but more or fewer may be returned depending on the user parameters set. A user may plot the original image, or, possibly, a downscaled version of the GIF, if such an object exists. It is possible to pass other parameters to the function, but they are unused.

Author(s)

Simon J. Goring simon.j.goring@gmail.com

Examples

1
2
3
4
5
gifs <- trending('horses', rating = 'g')
plot(gifs, n = 1)

# Plot a smaller version of the same gif:
plot(gifs, n = 2, type = 'downsized')

SimonGoring/giphyR documentation built on May 9, 2019, 1:06 a.m.