pattern_alpha: Modify transparency for patterns

View source: R/utilities-patterns.R

pattern_alphaR Documentation

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)

Arguments

x

Object to be interpreted as pattern.

alpha

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

Value

x with modified transparency


hadley/ggplot2 documentation built on April 28, 2024, 11:17 p.m.