The development app version of the Statistical Neighbour page has been built and is fully working with the required functionality to replicate the LAIT Statistical Neighbour view.
Pull request checklist
Please check if your PR fulfills the following:
[x] Tests for the changes have been added (for bug fixes / features)
[x] Docs have been reviewed and added / updated if needed (for bug fixes / features)
[x] Tests have been run locally and are passing (shinytest2::test_app())
[x] Code is styled according to tidyverse styling (checked locally with styler::style_dir() and lintr::lint_dir())
What is the current behaviour?
Currently the Statistical Neighbour development has just been in static R code. There is also no bar charts.
What is the new behaviour?
The Statistical Neighbour page can now be viewed in its out standalone Shiny app by running its development script stat_neigh_dev_app.R. All functionality in LAIT has been replicated for the Statistical Neighbour view:
Main Statistical Neighbour LA table
LA geographic comparison table
LA Statistical Neighbour statistics table (with correct formatting such as colour coding the quartile bands)
Line chart showing a focus plot of the selected LA against its Statistical Neighbours
Line chart showing a multi-choice plot of the selected LA against any of the relevant geographic areas a user wants to select.
The same as the two line charts but in bar chart format
The user input in the multi-choice charts carries across in both charts and the main inputs (LAs, Topics & Indicators)
Anything else
Next step is to convert this codebase into modules, more care will be taken this time to plan the modules in order to reduce code repetition, improve the logic and general code efficiency.
Pull request overview
The development app version of the Statistical Neighbour page has been built and is fully working with the required functionality to replicate the LAIT Statistical Neighbour view.
Pull request checklist
Please check if your PR fulfills the following:
shinytest2::test_app()
)styler::style_dir()
andlintr::lint_dir()
)What is the current behaviour?
Currently the Statistical Neighbour development has just been in static R code. There is also no bar charts.
What is the new behaviour?
The Statistical Neighbour page can now be viewed in its out standalone Shiny app by running its development script
stat_neigh_dev_app.R
. All functionality in LAIT has been replicated for the Statistical Neighbour view:Anything else
Next step is to convert this codebase into modules, more care will be taken this time to plan the modules in order to reduce code repetition, improve the logic and general code efficiency.