LogoLogo
OS Docs HomeOS NGDOS APIsOS Download ProductsMore than MapsContact Us
  • More than Maps
  • Geographic Data Visualisation
    • Guide to cartography
      • Introduction to cartography
      • Types of maps
      • Symbology
      • Colour
      • Text on maps
      • Generalisation
      • Coordinate reference systems
      • Projections
      • Scale
      • Map legends
      • Map layout
      • Relief representation
      • North arrows
    • Guide to data visualisation
      • Introduction to data visualisation
      • GeoDataViz design principles
      • Types of visualisation
      • Thematic mapping techniques
      • Data visualisation critique
      • Accessible data visualisation
      • Ethical data visualisation
      • Software
      • Data
    • GeoDataViz assets
      • GeoDataViz basemaps
      • Stylesheets
      • GeoDataViz virtual gallery
      • Equal area cartograms
      • How did I make that?
        • Apollo 11 Landing
        • North York Moors National Park, 70 years
        • Snowdonia National Park, 70 years
        • Great Britain's National Parks
        • Great Britain's Islands
        • Great Britain's AONB's and National Scenic Areas
        • Famous shipwrecks of Pembrokeshire
        • Trig pillars today
        • Britain's most complex motorway junctions
      • #30DayMapChallenge
  • Data in Action
    • Examples
  • Demonstrators
    • 🆕Product Viewer
    • Addressing & location demonstrators
      • Address Portfolio overview
      • Which address product should you use?
      • AddressBase
      • AddressBase Core
      • AddressBase Plus
      • AddressBase Premium
      • Address Classifications
      • Addressing Lifecycle
      • OS Emergency Services Gazetteer
      • What are Vertical Streets?
      • Why are there differences in boundaries?
    • Contextual demonstrators
    • Customer best practice
      • Channel Shift
      • Data Management and OS Data Hub
      • End User Licence vs Contractor Licence
      • 🆕 IDs vs Spatial Relationships
      • Why we should capture good quality addresses at source
      • Why we Snap and Trace
    • Network Demonstrators
      • OS Detailed Path Network
      • OS Multi Modal Routing Network
        • OS Multi Modal Routing Network
      • Water Networks overview
      • OS MasterMap Highways Network and OS NGD Speeds
      • OS MasterMap® Highways Network and OS Open Roads™
    • OS MasterMap Generation APIs
      • Using the OS Features API
      • Using the OS Features API Archive
      • Using the OS Downloads API
      • Using OS APIs in ESRI Software
    • 🆕OS NGD (National Geographic Database)
      • OS NGD Address
      • OS NGD Boundaries
      • 🆕OS NGD Buildings
        • 🆕Building and Building Access Feature Types
        • Building Part and Building Line Feature Types
      • 🆕OS NGD Geographical Names
      • OS NGD Land
      • OS NGD Land Cover enhancements
      • 🆕OS NGD Land Use
      • OS NGD Land Use enhancements
      • 🆕OS NGD Structures
        • 🆕OS NGD Structures
        • Field Boundaries
      • 🆕OS NGD Transport Features
      • 🆕OS NGD Transport Network
      • OS NGD Transport RAMI
      • OS NGD Water Features
      • OS NGD Water Network
      • OS NGD API - Features
      • Ordering OS NGD data
      • Change only updates
      • OS NGD Versioning
      • Creating a topographic map from OS NGD Data
      • Analytical styling for OS NGD data
    • OS MasterMap® demonstrators
    • 🆕Product & API Comparisons
      • 🆕Comparison of Water Network Products
  • Tutorials
    • GeoDataViz
      • Thematic Mapping Techniques
      • Downloading and using data from the OS Data Hub
      • How to download and use OS stylesheets
      • How to use the OS Maps API
      • Creating a bespoke style in Maputnik
    • GIS
      • Analysing pavement widths
      • Basic routing with OS Open Data and QGIS
      • Walktime analysis using OS Multi-modal Routing Network and QGIS
      • Creating 3D Symbols for GIS Applications
      • Constructing a Single Line Address using a Geographic Address
      • Creating a Digital Terrain Model (DTM)
      • Visualising a road gradient using a Digital Terrain Model
      • Visualising a road gradient using OSMM Highways
    • 🆕APIs
      • 🆕Using OS APIs with EPC API
      • 🆕OS APIs and ArcGIS
  • Deep Dive
    • Introduction to address matching
    • Guide to routing for the Public Sector
      • Part 1: Guide to routing
      • Part 2: Routing software and data options
      • Part 3: Building a routable network
    • Unlocking the Power of Geospatial Data
    • Using Blender for Geospatial Projects
    • A Guide to Coordinate Systems in Great Britain
      • Myths about coordinate systems
      • The shape of the Earth
      • What is position?
        • Types of coordinates
        • We need a datum
        • Position summary
      • Modern GNSS coordinate systems
        • Realising WGS84 with a TRF
        • The WGS84 broadcast TRF
        • The International Terrestrial Reference Frame (ITRF)
        • The International GNSS Service (IGS)
        • European Terrestrial Reference System 1989 (ETRS89)
      • Ordnance Survey coordinate systems
        • ETRS89 realised through OS Net
        • National Grid and the OSGB36 TRF
        • Ordnance Datum Newlyn
        • The future of British mapping coordinate systems
        • The future of British mapping coordinate systems
      • From one coordinate system to another: geodetic transformations
        • What is a geodetic transformation?
        • Helmert datum transformations
        • National Grid Transformation OSTN15 (ETRS89–OSGB36)
        • National Geoid Model OSGM15 (ETRS89-Orthometric height)
        • ETRS89 to and from ITRS
        • Approximate WGS84 to OSGB36/ODN transformation
        • Transformation between OS Net v2001 and v2009 realisations
      • Transverse Mercator map projections
        • The National Grid reference convention
      • Datum, ellipsoid and projection information
      • Converting between 3D Cartesian and ellipsoidal latitude, longitude and height coordinates
      • Converting between grid eastings and northings and ellipsoidal latitude and longitude
      • Helmert transformation worked example
      • Further information
  • Code
    • Ordnance Survey APIs
    • Mapping
    • Routing with pgRouting
      • Getting started with OS MasterMap Highways and pgRouting
      • Getting started with OS MasterMap Highways Network - Paths and pgRouting
      • Getting started with OS NGD Transport Theme and pgRouting
      • Getting started with OS NGD Transport Path features and pgRouting
  • RESOURCES
    • 🆕Data Visualisation External Resources
Powered by GitBook

Website

  • Ordnance Survey

Data

  • OS Data Hub
On this page
  • Step 1
  • Step 2
  • Step 3
  • Step 4
  • Step 5

Was this helpful?

  1. Geographic Data Visualisation
  2. GeoDataViz assets
  3. How did I make that?

North York Moors National Park, 70 years

PreviousApollo 11 LandingNextSnowdonia National Park, 70 years

Last updated 1 year ago

Was this helpful?

The inspiration for the North York Moors National Park came from Blog ‘’. A joyplot, otherwise known as a ridgeplot, is essentially a series of stacked line graphs. Our final data visualisation was inspired by the album cover of Joy Division’s Unknown Pleasures which was released in 1979. The colours were chosen to mirror the heather of the moors. We followed Helen’s tutorial to create our Joyplot but have explained below how we created our North York Moors Joyplot using OS data, along with how we used Adobe Illustrator to tweak the styling in a simple and effective way.

We have used elevation data from to create a series of elevation profiles to represent the terrain of the North York Moors National Park. This map could be recreated using , which is an open dataset. We also use the ‘National Parks’ layer from to get the national park boundary. To create the map we used QGIS, R Studio and Adobe Illustrator.

Step 1

The relevant ascii grid tiles of OS Terrain 5 were imported into QGIS and merged to create a single elevation model. The main focal point, the North York Moors National Park, was filtered from the National Parks layer of OS Open Zoomstack, with the boundary being used to clip the elevation model.

Step 2

We first created horizontal transects using the following steps:

  1. In the top toolbar of QGIS, go to Vector > Research Tools > Create Grid

  2. Set the Grid type to ‘line’ and the grid extent calculated from the National Park polygon layer. The horizontal spacing of the lines is not required but we set this to 1000 to make them easier to delete later. We set the vertical spacing to 450m, aiming for close to 100 horizontal lines (the North York Moors National Park is approximately 45km from its most southerly extent to its most northerly extent, give or take a few kilometres).

  3. Delete the vertical lines by right clicking on the new grid layer in the layers panel and clicking ‘toggle editing’. Next, select the vertical lines and delete them. Save your edits.

  4. Clip the grid to the National Park extent.

Step 3

We then created a point dataset and attributed each point with the elevation data:

  1. Open the Processing Toolbox panel. Under Vector creation, select ‘Generate points (pixel centroids) along line’. The raster layer will be your elevation data (in our case the Terrain 5 Elevation Model). The vector layer will be your newly created grid layer. This tool creates a point for every pixel in your elevation dataset along your horizontal transects.

  2. Run the tool. You may end up with what looks like a black screen – this is just all the points overlapping. You can change the size of the points by adjusting the layer symbology if you wish.

  3. Next, we need to add an elevation to each of these points. You will need to use a plugin for this. In the top toolbar, go to Plugins > Manage and Install Plugins and search for ‘Point Sampling Tool”.

  4. Go to the layers panel and ensure your new point layer plus your elevation dataset are turned on (i.e. ticked as visible) as they have to be for the Point Sampling Tool to work.

  5. Go to Plugins > Analyses > Point Sampling Tool. The Layer containing sampling points is the new point layer you’ve just created and the layer with fields/bands to get values from is your elevation dataset. You’ll need to specify a file location and name to save this layer in. This may take a little time to run.

  6. The final stage is to add coordinates to these points (x and y coordinate). In the Processing Toolbox panel, under Vector Table, select ‘Add X/Y fields to layer’. Your input layer will be the point layer you’ve just created with the elevation attached. Leave the Coordinate system as the default. Run the tool.

  7. Now we need to export this data as a csv file for use in R. Right click on your final point layer and go to Export > Save features as. Change the format to ‘Comma Separated Value [CSV]’. Give your file a sensible name such as ‘Points_NorthYorkMoors’.

Step 4

Now we can start creating your joyplot in R Studio.

  1. Open RStudio

  2. Go to File > New File > R Script. A new window should open titled ‘Untitled’.

  3. In this window we want to add our script. You can paste the script below into this window, making sure you change your data source location to where your csv file is saved.

  4. When you’re happy, highlight the whole script and click Run at the top right of the script panel. It may take a little while to process but you should see your plot appear in the ‘Plot’ panel. You can change all sorts of things about the way the plot looks using R if you know how. However, for simplicity, you can do the next stage of processing in Adobe Illustrator or similar graphics editing software.

  5. Export your joyplot as a PDF.

Step 5

Now we can do some basic editing in Adobe Illustrator or similar graphics package.

  1. Open your pdf in Adobe Illustrator

  2. Right click on the plot and select ‘Release Clipping Mask’. Each of your lines will now be editable individually.

  3. Change the colour of the background to whatever you want. We would recommend putting this background polygon on a separate layer and then lock it.

  4. In the layers panel, delete all the black ‘fill’ polygons.

  5. You can now trim down the lines at the bottom to better represent the outline of the North York Moors National Park and can adjust the styling of the lines – their thickness and colour – we applied a gradient fill to ours, rotated by -90 degrees.

After Adobe Illustrator

Although we used ggridges in R to create the stacked line graphs, it is also possible to create the same thing using the .

Helen Mckenzie’s
How to Joyplot
OS Terrain 5
OS Terrain 50
OS Open Zoomstack
JoyPy python package
Adobe Illustrator map