rotate_phylopic: Rotate a PhyloPic silhouette

View source: R/phylopic_utils.R

rotate_phylopicR Documentation

Rotate a PhyloPic silhouette

Description

The picture can be a Picture or png array object, e.g., from using get_phylopic(). Note that png array objects can only be rotated by multiples of 90 degrees.

Usage

rotate_phylopic(img, angle = 90)

Arguments

img

A Picture or png array object, e.g., from using get_phylopic().

angle

numeric. The number of degrees to rotate the silhouette clockwise.

Value

A Picture or png array object (matching the type of img)

See Also

Other transformations: flip_phylopic(), recolor_phylopic()


sckott/rphylopic documentation built on May 1, 2024, 12:04 a.m.