Skip to main content
100%

Exploratory Scatterplot of mtcars

✓ Published0🌍 Public
WWaseem Medhat
Last edited Oct 29, 2020
Created on Oct 29, 2020
Forked from React Starter

This interactive scatterplot visualizes the R mtcars dataset, letting users explore relationships between numeric variables like weight and miles per gallon while coloring points by categorical variables such as cylinder count or transmission type. Built with React and D3 v6, it uses `scaleLinear` and `scaleOrdinal` for axes and color, with dropdown menus from `react-dropdown` to switch attributes. The SVG rendering includes custom axis components and a color legend, and hovering over legend items animates opacity to highlight or dim points by category.

AI-generated description

The mtcars dataset is built into R, and it is commonly used by R data scientists for practice.

MIT Licensed

Similar vizzes