Mental health inpatient activity
A National Statistics publication for Scotland
Create the charts yourself
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 and the JavaScript library D3. 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 the code for the data explorer charts (external website).
In addition, an R style guide (external website) has been developed.