grid (version 3.0.3)

valid.just: Validate a Justification

Description

This utility function is useful for determining whether a justification specification is valid. An error is given if the justification is not valid.

Usage

valid.just(just)

Arguments

just
A justification either as a character value, e.g., "left", or as a numeric value, e.g., 0.

Value

A numeric representation of the justification (e.g., "left" becomes 0, "right" becomes 1, etc, ...).

Details

This function is useful within a validDetails method when writing a new grob class.