draw_panel_daynight: Draw Day/Night Pattern on Panel

View source: R/geom_daynight.R

draw_panel_daynightR Documentation

Draw Day/Night Pattern on Panel

Description

Internal function to draw the day/night pattern on the ggplot2 panel.

Usage

draw_panel_daynight(
  data,
  panel_params,
  coord,
  day_fill,
  night_fill,
  sunrise,
  sunset
)

Arguments

data

The data to be displayed.

panel_params

The parameters of the panel.

coord

The coordinate system.

day_fill

The fill color for daytime rectangles.

night_fill

The fill color for nighttime rectangles.

sunrise

The hour at which daytime starts.

sunset

The hour at which nighttime starts.

Value

A gList object containing the grobs for the day/night pattern.


ggdaynight documentation built on May 29, 2024, 9:34 a.m.