get_cat: Get a random cat image

Description Usage Arguments Value Examples

Description

Grabs a random cat image from http://theoldreader.com/kittens and returns it as an RGB array.

Usage

1
get_cat(width = 400, height = 400)

Arguments

width

Width in pixels of the requested image

height

Height in pixels of the requested image

Value

An height by width by 3 array containing RGB values between 0 and 1

Examples

1
2
3
4
5
# Give me RGB
get_cat(10, 10)
# Or make me a picture
plot(1:2, type='n', axes = FALSE)
rasterImage(get_cat(), 1, 1, 2, 2)

hilaryparker/cats documentation built on May 17, 2019, 3:58 p.m.