diff --git a/articles/Visualization-tools.html b/articles/Visualization-tools.html index e27c512c..4928237a 100644 --- a/articles/Visualization-tools.html +++ b/articles/Visualization-tools.html @@ -90,7 +90,7 @@

Visualization tools

Elio Campitelli

-

2024-09-24

+

2024-10-14

Source: vignettes/Visualization-tools.Rmd @@ -515,7 +515,10 @@

geom_streamline(g <- ggplot(temperature[lev == 500], aes(lon, lat)) + geom_contour_fill(aes(z = air.z)) + geom_streamline(aes(dx = t.dy, dy = -t.dx), L = 10, res = 2, - arrow.length = 0.3, xwrap = c(0, 360))) + arrow.length = 0.3, xwrap = c(0, 360))) +#> Warning: Computation failed in `stat_streamline()`. +#> Caused by error in `[.data.table`: +#> ! Supplied 5 items to be assigned to group 1 of size 4 in column 'step'. The RHS length must either be 1 (single values are ok) or match the LHS length exactly. If you wish to 'recycle' the RHS please use rep() explicitly to make this intent clear to readers of your code.

There are several parameters that control the feel of the result. L and res control the length and resolution, @@ -529,7 +532,10 @@

geom_streamlinedlat() are an easy way of doing this. This tight coupling also means that they are robust to coordinate transformations.

-g + coord_polar()
+g + coord_polar() +#> Warning: Computation failed in `stat_streamline()`. +#> Caused by error in `[.data.table`: +#> ! Supplied 5 items to be assigned to group 1 of size 4 in column 'step'. The RHS length must either be 1 (single values are ok) or match the LHS length exactly. If you wish to 'recycle' the RHS please use rep() explicitly to make this intent clear to readers of your code.

stat_streamline() computes three useful variables. step is the integration step, and dx and @@ -549,7 +555,10 @@

geom_streamline#> Please use `linewidth` instead. #> This warning is displayed once every 8 hours. #> Call `lifecycle::last_lifecycle_warnings()` to see where this warning was -#> generated. +#> generated. +#> Warning: Computation failed in `stat_streamline()`. +#> Caused by error in `[.data.table`: +#> ! Supplied 5 items to be assigned to group 1 of size 4 in column 'step'. The RHS length must either be 1 (single values are ok) or match the LHS length exactly. If you wish to 'recycle' the RHS please use rep() explicitly to make this intent clear to readers of your code.

diff --git a/articles/Visualization-tools_files/figure-html/unnamed-chunk-22-1.png b/articles/Visualization-tools_files/figure-html/unnamed-chunk-22-1.png index bd07b134..19249787 100644 Binary files a/articles/Visualization-tools_files/figure-html/unnamed-chunk-22-1.png and b/articles/Visualization-tools_files/figure-html/unnamed-chunk-22-1.png differ diff --git a/articles/Visualization-tools_files/figure-html/unnamed-chunk-23-1.png b/articles/Visualization-tools_files/figure-html/unnamed-chunk-23-1.png index 85204dbf..0450c4d4 100644 Binary files a/articles/Visualization-tools_files/figure-html/unnamed-chunk-23-1.png and b/articles/Visualization-tools_files/figure-html/unnamed-chunk-23-1.png differ diff --git a/articles/Visualization-tools_files/figure-html/unnamed-chunk-24-1.png b/articles/Visualization-tools_files/figure-html/unnamed-chunk-24-1.png index 5c4e4ee6..895a3459 100644 Binary files a/articles/Visualization-tools_files/figure-html/unnamed-chunk-24-1.png and b/articles/Visualization-tools_files/figure-html/unnamed-chunk-24-1.png differ diff --git a/articles/Working-with-data.html b/articles/Working-with-data.html index 3310eb4b..f057b49a 100644 --- a/articles/Working-with-data.html +++ b/articles/Working-with-data.html @@ -90,7 +90,7 @@

Working with data

Elio Campitelli

-

2024-09-24

+

2024-10-14

Source:
vignettes/Working-with-data.Rmd diff --git a/news/index.html b/news/index.html index a34edbe7..c3526f88 100644 --- a/news/index.html +++ b/news/index.html @@ -73,6 +73,7 @@

Breaking changesThe trans argument of scales has been renamed to transform following ggplot2’s change.
  • scale_mag() internals are now much simpler and inherits all the functionality from common continuous scales. (thanks @teunbrand for the suggestion, #186)
  • +
  • The step computed variable in geom_streamline() now goes from 0 to the total number of steps instead of from negative half to positive half.
  • diff --git a/pkgdown.yml b/pkgdown.yml index b02e9ba9..54867569 100644 --- a/pkgdown.yml +++ b/pkgdown.yml @@ -4,7 +4,7 @@ pkgdown_sha: ~ articles: Visualization-tools: Visualization-tools.html Working-with-data: Working-with-data.html -last_built: 2024-09-24T06:27Z +last_built: 2024-10-14T05:44Z urls: reference: https://eliocamp.github.io/metR/reference article: https://eliocamp.github.io/metR/articles diff --git a/reference/FitLm.html b/reference/FitLm.html index ada6d50c..69c18dc7 100644 --- a/reference/FitLm.html +++ b/reference/FitLm.html @@ -143,7 +143,7 @@

    Examples

    regr <- geopotential[, FitLm(gh, date, se = TRUE), by = .(lon, lat)] }) #> user system elapsed -#> 0.333 0.000 0.333 +#> 0.326 0.000 0.325 ggplot(regr[term != "(Intercept)"], aes(lon, lat)) + geom_contour(aes(z = estimate, color = after_stat(level))) +