View source: R/geom_daynight.R
draw_panel_daynight | 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.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.