visualising-data-course

Visual Grammar

This section describes how visual attributes relate to the characteristics of the data.

Each chart plots a set of variables

Bar chart: (1-2 categorical, 1 continuous)

Bar chart showing schools data

Scatter plot: (2 continuous, 1-3 categorical)

Scatter plot showing schools data

Example: (stacked) bar chart

What are the categorical and continuous variables?

nhs_appointments_col_chart

col_config_panel

Example: Scatter plot

What are the categorical and continuous variables?

scatter_chart_cars

scatter_config_panel

Reading a chart: look at the anatomy

Scaffolding provides the scope and indicates the reason, purpose.

Visual encoding translates quantities to marks and symbols

Context (author,intended audience, location of report)

Grammar of Graphics

ggplot2 book cover

Source: ggplot2 (ggplot2-book.org) Hadley Wickham