| plot_ntl_trend | R Documentation |
Line chart of mean radiance over time for one or more regions. Accepts
output from extract_panel() or bhuvan_stats().
plot_ntl_trend(
panel,
region = NULL,
title = "Nighttime lights radiance",
subtitle = NULL,
caption = NULL
)
panel |
A data frame as returned by |
region |
Character vector of region identifiers to plot. |
title |
Plot title. Default |
subtitle |
Optional subtitle string. |
caption |
Optional caption string. |
A ggplot2 object.
panel <- data.frame(
region_id = rep(c("Lucknow", "Patna"), each = 4),
year = rep(2018:2021, 2),
mean_radiance = c(8.1, 8.6, 8.4, 9.2, 5.0, 5.6, 6.1, 6.9)
)
plot_ntl_trend(panel)
plot_ntl_trend(panel, region = "Patna")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.