Learn R Programming

rphylopic (version 1.5.0)

rotate_phylopic: 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)

Value

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

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.

See Also

Other transformations: flip_phylopic(), recolor_phylopic()