• Home
  • Slides
    • PowerPoint
  • Data
  • Examples
    • Bar chart of gender modality and sex
    • Bar chart of gender modality by age
    • Map of sexual orientation in Northern Ireland
    • Beeswarm chart of health by sexual orientation
  • Gallery

On this page

  • Pre-processing
  • Loading data
  • Raw data sources
    • Scotland
    • Northern Ireland
    • England & Wales
    • Gender modality
    • Spatial data

Data

The data has been pre-processed to enable you to focus on visualisation instead of data cleaning.

Pre-processing

The raw data downloaded from census websites can be found in the data/raw-data folder, and the README explains where each data set came from.

The raw data was processed to create the clean data sets in the data folder. The processing code can be found in data/00_clean_data.R.

Loading data

You can load the main, pre-cleaned data sets using:

library(readr)

# Scotland ----------------------------------------------------------------

sexual_age_scot <- read_csv("data/sexual_age_scot.csv")
genmod_age_scot <- read_csv("data/genmod_age_scot.csv")


# Northern Ireland --------------------------------------------------------

sexual_age_ni <- read_csv("data/sexual_age_ni.csv")


# England and Wales -------------------------------------------------------

sexual_genmod_ew <- read_csv("data/sexual_genmod_ew.csv")
population_ew <- read_csv("data/population_ew.csv")


## Additional data --------------------------------------------------------

sexual_general_health <- read_csv("data/additional-ew/sexual_general_health.csv")

Raw data sources

Scotland

Sexual orientation

  • Sexual orientation by age (5 groups)

Gender modality

  • Gender modality by age (5 groups)

Northern Ireland

Sexual orientation

  • Sexual orientation by age

England & Wales

Sexual orientation

  • Sexual orientation
  • Sexual orientation by age & sex
  • Sexual orientation by disability
  • Sexual orientation detailed geography
  • Sexual orientation by dwelling type
  • Sexual orientation by economic activity
  • Sexual orientation by ethnic group
  • Sexual orientation by general health
  • Sexual orientation by highest qualification
  • Sexual orientation by household composition
  • Sexual orientation by industry
  • Sexual orientation by legal partnership
  • Sexual orientation by NS-SEC
  • Sexual orientation by occupancy rating(rooms)
  • Sexual orientation by occupation
  • Sexual orientation by religion
  • Sexual orientation by tenure
  • Sexual orientation by unpaid carer status
  • Sexual orientation further personal characteristics:
    • Ethnic group by sexual orientation, age, and sex: England and Wales (combined)
    • Ethnic group by sexual orientation, age, and sex: England and Wales (separate)
    • Sexual orientation by ethnic group, age, and sex: England and Wales (combined)
    • Religion by sexual orientation, age, and sex: England and Wales (combined)
    • Religion by sexual orientation, age, and sex: England and Wales (separate)
    • Sexual orientation by religion, age, and sex: England and Wales (combined)
    • General health by sexual orientation, age, and sex: England and Wales (combined)
    • General health by sexual orientation, age, and sex: England and Wales (separate)
    • Sexual orientation by general health, age, and sex: England and Wales (combined)
    • Disability by sexual orientation, age, and sex: England and Wales (combined)
    • Disability by sexual orientation, age, and sex: England and Wales (separate)
    • Sexual orientation by disability, age, and sex: England and Wales (combined)
    • Economic activity by sexual orientation, age, and sex: England and Wales (combined)
    • Economic activity by sexual orientation, age, and sex: England and Wales (separate)
    • Economic inactivity by sexual orientation, age, and sex: England and Wales (combined)
    • Economic inactivity by sexual orientation, age, and sex: England and Wales (separate)
    • Occupation by sexual orientation, age, and sex: England and Wales (combined)
    • Occupation by sexual orientation, age, and sex: England and Wales (separate)
    • Sexual orientation by occupation, age, and sex: England and Wales (combined)
    • NS-SEC by sexual orientation, age, and sex: England and Wales (combined)
    • NS-SEC by sexual orientation, age, and sex: England and Wales (separate)
    • Sexual orientation by NS-SEC, age, and sex: England and Wales (combined)
    • Highest level of qualification by sexual orientation, age, and sex: England and Wales (combined)
    • Highest level of qualification by sexual orientation, age, and sex: England and Wales (separate)
    • Child family status by sexual orientation: England and Wales (combined)
    • Child family status by sexual orientation: England and Wales (separate)
    • Family status by sexual orientation: England and Wales (combined)
    • Family status by sexual orientation: England and Wales (separate)
    • Legal partnership status by sexual orientation, age, and sex: England and Wales (combined)
    • Legal partnership status by sexual orientation, age, and sex: England and Wales (separate)

Gender modality

Gender modality

  • Gender modality by age and sex
  • Gender modality by disability
  • Gender modality by dwelling type
  • Gender modality by economic activity status
  • Gender modality by ethnic group
  • Gender modality by highest qualifications
  • Gender modality by hours worked
  • Gender modality by industry
  • Gender modality by legal partnership
  • Gender modality by NS-SEC
  • Gender modality by occupancy rating (bedrooms)
  • Gender modality by occupancy rating (rooms)
  • Gender modality by occupation
  • Gender modality by religion
  • Gender modality by tenure
  • Gender modality by unpaid carer status

Spatial data

If you want to make maps, you will also need spatial data for the boundaries of the different regions.

Northern Ireland

  • OSNI Open Data - Largescale Boundaries - Local Government Districts

England & Wales

  • Lower layer Super Output Areas: Census 2021 Boundaries

  • Population and household estimates, England and Wales: Census 2021: Figure 3 datadownload.xlsx