rtrek (version 0.4.0)

mb_image: Memory Beta images

Description

Download a Memory Beta image and return a ggplot object.

Usage

mb_image(url, file, keep = FALSE)

Value

a ggplot object

Arguments

url

character, the short URL of the image, for example as returned by memory_beta(). See example.

file

character, output file name. Optional. See details.

keep

logical, if FALSE (default) then file is only temporary.

Details

By default the downloaded file is not retained (keep = FALSE). The filename is derived from url if file is not provided. Whether or not the output file is kept, a ggplot object of the image is returned.

Examples

Run this code
if (FALSE) mb_image("File:DataBlaze.jpg")

Run the code above in your browser using DataLab