Learn R Programming

ggpattern (version 0.1.3)

create_gradient_as_array: A shim to go between the main pattern function for an image, and the specific pattern functon for an image.

Description

This function really just unwraps the 'params' into better arguments and passes them to the actual img/array creation function

Usage

create_gradient_as_array(width, height, params, legend)

Arguments

width, height

image dimensions

params

geom parameters from ggplot

legend

logical. TRUE if call comes during legend creation, otherwise FALSE.

Value

RGBA array