ASCI Logo
ASCI.Academy
LearnPracticeCompeteCareer
Sign InGet Started

Search ASCI Academy

Universal search across Courses, Lessons, Skills, Projects, Challenges, Competitions, Jobs, Internships, and Users

data science-visualization

Curriculum Index

Current LevelInitiate
0/ 500 XP
Gravit Certificate:
100% Required
  • 1.1 Layers of the Grammar of Graphics
•
1
2
3
4
5
6
7
8
9
10
Module 1: The Grammar of Graphics & ggplot2•Lesson 1

1.1 Layers of the Grammar of Graphics

### The Grammar Hierarchy
1. **Data:** The tidy data frame.
2. **Aesthetics (aes):** Mapping columns to $x$, $y$, color, size, or shape.
3. **Geometries (geom):** Visual shapes (points, bars, lines).
4. **Faceting:** Splitting plots across categorical subsets.
Python 3.11
•
Interactive Challenge
+60 XP
Challenge Objective

Output the count of core graphic grammar layers: 'TOTAL_LAYERS: 5'.

solution.py
UTF-84 SpacesAuto-saved
cpython3.11:~/workspace
CPython 3.11.8 (WASM)
$python3 -u solution.py
Click "Compile & Run" (or press Ctrl + Enter) to compile AST, verify bytecode, and execute the solution.