Tugas 1 Edit
Tugas 1 Edit
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.
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.