st_logo: Star Trek logos

View source: R/logos.R

st_logoR Documentation

Star Trek logos

Description

Download an image of a Star Trek logo and return a ggplot object.

Usage

st_logo(url, file, keep = FALSE)

Arguments

url

character, the url of the image, must be one from the dataset stLogos(). 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. These files are all .gif. Whether or not the output file is kept, a ggplot object of the image is returned. For more information on attribution, see stLogos().

Value

a ggplot object

See Also

stLogos()

Examples

## Not run: st_logo(stLogos$url[1])

leonawicz/rtrek documentation built on Sept. 18, 2023, 11:29 p.m.