Skip to main content
100%

Average REM Sleep Duration vs. Age

✓ Published0🌍 Public
MMartha Cash
Last edited Apr 11, 2023
Created on Apr 11, 2023

This visualization shows how average REM sleep duration varies with age using data from a sleep efficiency dataset. The scatter plot displays age on the x-axis and average REM sleep percentage on the y-axis, with each point representing a distinct age group. The visualization uses D3.js v7 APIs including `scaleLinear`, `axisBottom`, `axisLeft`, and `flatRollup` to aggregate the raw CSV data into age-grouped averages. A dropdown menu lets viewers switch between different sleep metrics, though the default view focuses specifically on REM sleep patterns across the lifespan.

AI-generated description

This is a viz on the sleep efficiency dataset. The question this viz aims to answer the question how does age correlate with certain feautres of the dataset. This graph looks at age vs average light sleep duration.

To do: add tool tip for hovering over data

MIT Licensed

Similar vizzes