0% found this document useful (0 votes)
18 views3 pages

Tugas 1 Edit

This document describes 4 programming tasks to visualize a classic cars dataset from 1970-1982 using different basic visualization techniques in Python. The tasks include: 1) Creating a grouped bar chart to compare gas mileage distributions by geographic origin. 2) Generating a line chart to show the temporal evolution of gas mileage for each origin from 1970-1982. 3) Plotting a scatter plot of horsepower vs gas mileage, color-coded by year. 4) Developing a scatter plot matrix to examine relationships between gas mileage, weight, horsepower and engine size, color-coded by origin. The dataset includes specifications for 398 car models.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
18 views3 pages

Tugas 1 Edit

This document describes 4 programming tasks to visualize a classic cars dataset from 1970-1982 using different basic visualization techniques in Python. The tasks include: 1) Creating a grouped bar chart to compare gas mileage distributions by geographic origin. 2) Generating a line chart to show the temporal evolution of gas mileage for each origin from 1970-1982. 3) Plotting a scatter plot of horsepower vs gas mileage, color-coded by year. 4) Developing a scatter plot matrix to examine relationships between gas mileage, weight, horsepower and engine size, color-coded by origin. The dataset includes specifications for 398 car models.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 3

Programming Assignment 1: Basic Visualization Techniques

Tujuan
Tugas pemrograman pertama ini bertujuan untuk memberikan gambaran singkat tentang berbagai
teknik visualisasi dasar sekaligus membiasakan dengan berbagai library visualisasi. Data berupa tabel
dan buat visualisasinya dengan cara yang berbeda..

Data
The dataset for this project is the classical old cars dataset, which lists several characteristics of
various cars built between 1970 and 1982. This is a typical tabular dataset where the items (or keys)
correspond to the individual car models and the attributes correspond to the available
characteristics. This type of dataset is non-trivial to visualize because several attributes (in this case
6) need to be represented simultaneously. Here, we will mostly circumvent this challenge by
considering different subsets of the data.

Practically, the dataset indicates the number of cylinders, the engine volume, the vehicle weight, the
year, the geographic origin, the horsepower, and the gas mileage of 398 different models. The
dataset is provided as a csv file.

Tasks
Task 1: Grouped Bar Chart

Visualize with a grouped bar chart (see above) the gas mileage distribution of all the models by
geographic origin. In other words, you will create a chart in which each gas mileage value is
associated with 3 bars (one for each origin: US, Europe, Japan) and show how the distributions of
the gas mileage values compare across regions. For that you will discretize the range of possible
gas mileage values in 2 mpg increments.
Task 2: Line Chart

Visualize for each geographic origin the temporal evolution of the gas mileage from 1970 to 1982
using a line chart. Each data point will correspond to the annual average of the gas mileage for a
given origin and each curve will comprise 13 points. Assign a different color to each curve.

Task 3: Scatter Plot

So far, we have only visualized a single attribute (ie. the gas mileage). For this third task, visualize
the relationship between horsepower and gas mileage in a scatter plot. The horizontal axis should
correspond to the horsepower, the vertical axis to the gas mileage and each data point to a
particular car. Apply to the scatter plot a color coding indicating the year.
Task 4: Scatter Plot Matrix

Visualize gas mileage, weight, horsepower, and engine size in a scatter plot matrix. Color code the
individual data points by country of origin.

Data Set
The dataset is available in CSV format here.

Dibuat dalam Colab

You might also like