Learn R Programming

ggpattern (version 0.1.3)

create_key_pattern_grob: Create the patterned area to be used in the legend key

Description

Create the patterned area to be used in the legend key

Usage

create_key_pattern_grob(data, params, size, aspect_ratio, boundary_df)

Arguments

data

A single row data frame containing the scaled aesthetics to display in this key

params

A list of additional parameters supplied to the geom.

size

Width and height of key in mm.

aspect_ratio

the geom's best guess at what the aspect ratio might be.

boundary_df

the boundary of the pattern in npc coordinates