Skip to content

Commit 3ed9871

Browse files
committed
fixed link opendata enedis
1 parent 3ee2fdd commit 3ed9871

File tree

3 files changed

+9
-9
lines changed

3 files changed

+9
-9
lines changed

R/data.R

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@
7676
#'
7777
#' @format A data frame with 365 observations and 6 variables.
7878
#'
79-
#' @source Enedis (\url{https://data.enedis.fr/explore/dataset/donnees-de-temperature-et-de-pseudo-rayonnement/})
79+
#' @source Enedis (\url{https://opendata.enedis.fr/datasets/donnees-de-temperature-et-de-pseudo-rayonnement/})
8080
"temperatures"
8181

8282

data-raw/temperature.R

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# ------------------------------------------------------------------------
22
#
33
# temperature data for France
4-
# https://data.enedis.fr/explore/dataset/donnees-de-temperature-et-de-pseudo-rayonnement
4+
# https://opendata.enedis.fr/datasets/donnees-de-temperature-et-de-pseudo-rayonnement/
55
#
66
# ------------------------------------------------------------------------
77

@@ -47,13 +47,13 @@ usethis::use_data(temperatures, internal = FALSE, overwrite = TRUE, compress = "
4747

4848
pkgload::load_all()
4949

50-
apex(temperatures, aes(x = date, ymin = low, ymax = high), type = "rangeArea", serie_name = "Low/High (2018-2021)") %>%
51-
add_line(aes(date, `2023`)) %>%
52-
ax_chart(animations = list(enabled = FALSE)) %>%
53-
ax_yaxis(tickAmount = 7, labels = list(formatter = format_num("~", suffix = "°C"))) %>%
50+
apex(temperatures, aes(x = date, ymin = low, ymax = high), type = "rangeArea", serie_name = "Low/High (2018-2021)") %>%
51+
add_line(aes(date, `2023`)) %>%
52+
ax_chart(animations = list(enabled = FALSE)) %>%
53+
ax_yaxis(tickAmount = 7, labels = list(formatter = format_num("~", suffix = "°C"))) %>%
5454
ax_colors(c("#8485854D", "#FF0000")) %>%
55-
ax_stroke(width = c(1, 2)) %>%
56-
ax_fill(opacity = 1, type = "solid") %>%
55+
ax_stroke(width = c(1, 2)) %>%
56+
ax_fill(opacity = 1, type = "solid") %>%
5757
ax_labs(
5858
title = "Temperatures in 2023 with range from 2018 to 2021",
5959
subtitle = "Data from ENEDIS"

man/temperatures.Rd

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)