Drug-related hospital statistics
Scotland 2020 to 2021
A National Statistics publication for Scotland
Access the code used to build the charts
All of the charts used in this data release are available to use. They are available under open government license (external website). The charts have been produced using the statistical program R. The code is available on GitHub, a code repository. GitHub allows anyone to use the code and they can comment on it too. Please comment on the code so that we can get better as an organisation.
See code for the Trend data charts (external website) and Data explorer charts (external website).
In addition an R style guide (external website) has been developed.