assertIsColorScaleContinuousOrNULL: Assert Is Color Palette Scale Continuous or NULL

Description Usage Arguments Value Examples

View source: R/assertIsColorScaleContinuousOrNULL.R

Description

Assert Is Color Palette Scale Continuous or NULL

Usage

1

Arguments

object

Object.

Value

Always stop on error.

Examples

1
2
3
4
color <- ggplot2::scale_color_gradient(low = "red", high = "blue")
class(color)
assertIsColorScaleContinuousOrNULL(color)
assertIsColorScaleContinuousOrNULL(NULL)

steinbaugh/basejump.assertions documentation built on Nov. 5, 2018, 10:37 p.m.