diff --git a/articles/cwd_example.html b/articles/cwd_example.html index 99c31c6..44e4097 100644 --- a/articles/cwd_example.html +++ b/articles/cwd_example.html @@ -90,7 +90,7 @@

Example

Beni Stocker

-

2023-11-08

+

2023-11-16

Source: vignettes/cwd_example.Rmd @@ -275,13 +275,13 @@

Extreme value statistics geom_point() + labs(x = "Return period (yr)", y = "Magnitude of annual CWD maximum (mm)")

-

Visualise the estimated event size with a return period of \(T = 80\) y on top of the distribution of -cumulative water deficit events.

+

Visualise the estimated event size with a return period of \(T = 80\) y as the red line on top of the +distribution of cumulative water deficit events.

 ggplot() +
   geom_histogram(
     data = out_cwd$inst,
-    aes(x = deficit, y = ..density..),
+    aes(x = deficit, y = after_stat(density)),
     color = "black",
     position="identity",
     bins = 6
@@ -291,11 +291,6 @@ 

Extreme value statistics dplyr::filter(return_period == 80) %>% pull(return_level), col = "tomato")

-
## Warning: The dot-dot notation (`..density..`) was deprecated in ggplot2 3.4.0.
-##  Please use `after_stat(density)` instead.
-## This warning is displayed once every 8 hours.
-## Call `lifecycle::last_lifecycle_warnings()` to see where this warning was
-## generated.

diff --git a/pkgdown.yml b/pkgdown.yml index 04471c7..6b59e06 100644 --- a/pkgdown.yml +++ b/pkgdown.yml @@ -3,5 +3,5 @@ pkgdown: 2.0.7 pkgdown_sha: ~ articles: cwd_example: cwd_example.html -last_built: 2023-11-08T20:08Z +last_built: 2023-11-16T14:57Z