multi_title: Multiple Colored Plot Title

Description Usage Arguments Functions Examples

View source: R/5_vario_hrange_occurrence.R

Description

Make multiple colored base plot title.

Usage

1
2
3
4
5
multi_title(...)

multi_color_title(color_vec, text_vec, sep = ", ")

multi_color_multi_line_title(color_vec, text_vec, sep = "\n\n")

Arguments

...

Color and text interwoven in order. See example. Note some spaces need to be placed around text.

color_vec

Vector of colors. Should have same length with text_vec

text_vec

Vector of text segments. Will have the cooresponding color in color_vec.

sep

Separator to be placed among the text segments

Functions

Examples

1
2
3
4
plot(1, 2)
multi_title(color="red", "Traffic",
           color="orange", " light ",
           color="green", "signal")

francocarol/shiny_ctmm documentation built on March 17, 2020, 12:11 a.m.