draw_panel_daynight {ggdaynight}R 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.


[Package ggdaynight version 0.1.3 Index]