read_png: Read In .png File

Description Usage Arguments Value Examples

Description

Reads a .png file in as a ggplot2 object.

Usage

1
read_png(file, columns = 30, rows = columns)

Arguments

file

The imput png file.

columns

The number of columns (corresponds to gridify).

rows

The number of rows (corresponds to gridify).

Value

Reads in and plots a png file.

Examples

1
2
3
file <- system.file("extdata/deb_roy.png", package = "embodied")
base <- read_png(file)
base

trinker/embodied documentation built on May 31, 2019, 8:42 p.m.