Skip to main content
100%

p5.js.Strip Plot with jittering

✓ Published0🌍 Public
EEunice Tu
Last edited Feb 10, 2024
Created on Feb 8, 2024
Forked from p5.js.histogram

This p5.js example visualizes highway fuel efficiency for seven car makes, plotting each vehicle’s miles per gallon as a jittered point to reveal data distribution. The sketch loads a pre-cleaned CSV from a GitHub gist using `loadTable`, groups rows by make into a `Map`, and randomizes horizontal offsets via `random()`. Rendering uses Canvas drawing functions like `point()` and `line()` to create a strip chart with labeled axes, color-coded points, and a jitter effect that reduces overlap.

AI-generated description

'https://gist.githubusercontent.com/eunicetu16/887aeb4a2f1cb34cc8c9890a2767f1a8/raw/779e47af52b9f30adbeb3abafc5b063a643ed545/highway_mpg.csv'

The original dataset is from 'https://corgis-edu.github.io/corgis/csv/cars/', and take only 'Identification.Make' and 'Fuel Information.Highway mpg'. Clean the dataset to have only 7 cars made that are needed.

MIT Licensed

Similar vizzes