Skip to main content

Learn to Create a Stacked Bar Chart Using R With Data From Our World in Data (2018)

By: & Published: 2021 | Product: SAGE Research Methods: Data Visualization
Chart type:
Chart family:

This dataset outlines how to create a horizontal stacked bar chart of global energy consumption, using a dataset from Our World in Data and the R programming language. Stacked bar charts are used to visualize the subdivision of values into two or more categories over different qualitative categories. The stacked bar chart uses length and area to encode values and color to distinguish the subdivisions making up each bar. You will learn to identify ideal use cases and best practices for employing this visualization type in your work. The dataset file is accompanied by a Student Guide and a How-to Guide for creating this chart type using R.

Software Guide:
+- LessMore information

You can preview and download the dataset in this tab. The dataset is available in multiple file formats, compatible with most common software packages. You can also view and download the Codebook, which provides information on the structure, contents, and layout of the dataset.

Looks like you do not have access to this content.

Please log in from an authenticated institution or log into your member profile to access the email feature.

Embed code:
Link to this page directly with a permalink:
Preview example:

Copy and paste the following HTML into your website