GGally (version 1.2.0)

first_non_null: Get first non null value

Description

Get first non null value

Usage

first_non_null(...)

Arguments

...
args to be checked

Examples

Run this code
p <- ggplot2::qplot(1:10, 1:10) + ggplot2::theme(plot.title = ggplot2::element_text(size = 13))
GGally:::first_non_null(GGally:::get_theme_element(p, "plot.title", "size"), 15)
GGally:::first_non_null(GGally:::get_theme_element(p, "plot.title", "BAD"), 15)

Run the code above in your browser using DataLab