draw_panel_daynight {ggdaynight} | R Documentation |
Internal function to draw the day/night pattern on the ggplot2 panel.
draw_panel_daynight(
data,
panel_params,
coord,
day_fill,
night_fill,
sunrise,
sunset
)
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. |
A gList object containing the grobs for the day/night pattern.