Skip to content

Commit 52eaad9

Browse files
committed
fix weblink
1 parent 68e8f71 commit 52eaad9

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

vignettes/fasstr_under_the_hood.Rmd

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -251,7 +251,7 @@ For the plotting functions data is typically calculated from the other `calc_` `
251251

252252
Before plotting, some variables are created based on the custom options provided in the arguments (axis labels etc).
253253

254-
As there is the potential for many plots to be produced in the `fasstr` functions, a tidy method was used to create multiple plots simultaneously in an efficient process using `dplyr`, `tidyr`, `purrr`, and `ggplot2` packages to create a tibble of plots. See this [webpage](http://www.brodrigues.co/blog/2017-03-29-make-ggplot2-purrr/) for more information on the method. For `fasstr` plotting functions, this entails creating a single tibble of groups ('STATION_NUMBER's), data, and plots. First the data is grouped by the grouping (typically 'STATION_NUMBER's) using the `dplyr::group()` function; this will create a single plot for each grouping. Then using `tidyr::nest()` a tibble is created with two columns, the first being the 'STATION_NUMBER' and the second being a tibble of data for each 'STATION_NUMBER' (a tibble of tibbles). Then using `dplyr::mutate()` function a column of ggplots is created; and using `purrr::map2()` all of the plots can be created simultaneously (thus saving time in the function). As this type of table isn't entirely user-friendly, each plot is extracted into a list and named appropriately (typically by each grouping and then the statistic).
254+
As there is the potential for many plots to be produced in the `fasstr` functions, a tidy method was used to create multiple plots simultaneously in an efficient process using `dplyr`, `tidyr`, `purrr`, and `ggplot2` packages to create a tibble of plots. See this [webpage](https://www.brodrigues.co/blog/2017-03-29-make-ggplot2-purrr/) for more information on the method. For `fasstr` plotting functions, this entails creating a single tibble of groups ('STATION_NUMBER's), data, and plots. First the data is grouped by the grouping (typically 'STATION_NUMBER's) using the `dplyr::group()` function; this will create a single plot for each grouping. Then using `tidyr::nest()` a tibble is created with two columns, the first being the 'STATION_NUMBER' and the second being a tibble of data for each 'STATION_NUMBER' (a tibble of tibbles). Then using `dplyr::mutate()` function a column of ggplots is created; and using `purrr::map2()` all of the plots can be created simultaneously (thus saving time in the function). As this type of table isn't entirely user-friendly, each plot is extracted into a list and named appropriately (typically by each grouping and then the statistic).
255255

256256
The following is an example of the process of the creating the plots (with simplified plotting).
257257

0 commit comments

Comments
 (0)