Learn R Programming

ggRtsy (version 1.2.1)

RectangleFiller: Adds transparent coloring horizontally across a ggplot

Description

Adds up to 5 colors of choice horizontally across a ggplot graph for data emphasis or decoration.

Usage

RectangleFiller(
  plot1,
  hex_codes = c("red", "blue", "green", "orange", "purple")
)

Value

ggplot item with colors

Arguments

plot1

a ggplot with a continuous x-axis

hex_codes

series of wanted colors