make.palette: (Internal) Make palette of a graphic parameter.

View source: R/switch.par.r

make.paletteR Documentation

(Internal) Make palette of a graphic parameter.

Description

(Internal) Make palette of a graphic parameter.

Usage

make.palette(pal, x, ...)

## Default S3 method:
make.palette(pal, x, ...)

## S3 method for class ''function''
make.palette(pal, x, ...)

Arguments

pal

a graphic parameter making function or character vector.

x

a vector of values that the parameter is made based on it.

...

other parameters passed to the graphic parameter making function.

Value

If x is NULL, a non-named vector of the graphic parameter of length 1. Otherwise, a named vector of graphic parameters with unique values in x for the name of it.

Methods (by class)

  • make.palette(default): Default S3 method, intended to be used for character vector.

  • make.palette(`function`): S3 method for function.


Marchen/partial.plot documentation built on Feb. 13, 2025, 4:18 a.m.