Learn R Programming

ggplot2 (version 3.5.0)

pattern_alpha: Modify transparency for patterns

Description

This generic allows you to add your own methods for adding transparency to pattern-like objects.

Usage

pattern_alpha(x, alpha)

Value

x with modified transparency

Arguments

x

Object to be interpreted as pattern.

alpha

A numeric vector between 0 and 1. If NA, alpha values are preserved.