{ "cells": [ { "attachments": {}, "cell_type": "markdown", "metadata": {}, "source": [ "# 3.4 Figure Design\n", "\n", "In this section, we will look how adjusting figure components can make figures clearer and more understandable.\n", "\n", "When creating figures, you should consider:\n", "1. Who is the **target audience**?\n", "2. What information do I want to **highlight**?\n", "3. What is the most appropriate **way** to show this information?\n", "\n", "For this majority of this section, we'll use data on COVID-19 hosted by the [Our World in Data](https://ourworldindata.org/coronavirus) project. ([Source](https://alan-turing-institute.github.io/rds-course/modules/m3/3.2-RulesOfTheGame.html))\n" ] }, { "cell_type": "code", "execution_count": 5, "metadata": { "tags": [ "hide-input" ] }, "outputs": [ { "data": { "text/html": [ "
\n", " | continent | \n", "location | \n", "date | \n", "total_cases | \n", "population | \n", "
---|---|---|---|---|---|
195701 | \n", "North America | \n", "Saint Lucia | \n", "2021-06-21 | \n", "5218.0 | \n", "179872.0 | \n", "
238698 | \n", "Oceania | \n", "Tuvalu | \n", "2021-10-20 | \n", "NaN | \n", "11335.0 | \n", "
53423 | \n", "Africa | \n", "Cote d'Ivoire | \n", "2022-01-19 | \n", "79558.0 | \n", "28160548.0 | \n", "
29501 | \n", "Europe | \n", "Bosnia and Herzegovina | \n", "2020-06-16 | \n", "3085.0 | \n", "3233530.0 | \n", "
166302 | \n", "Africa | \n", "Niger | \n", "2021-10-25 | \n", "6260.0 | \n", "26207982.0 | \n", "