VISUALISE bill_len AS x, bill_dep AS y FROM ggsql:penguins
DRAW point
LABEL
title => 'Penguin Bill Dimensions',
x => 'Bill Length (mm)',
y => 'Bill Depth (mm)'Scatter Plot
basic
point
Basic scatter plot mapping two numeric variables to position
A scatter plot displays the relationship between two numeric variables by mapping them to x and y positions. This is one of the most fundamental visualization types for exploring correlations and patterns.
Code
Explanation
VISUALISE ... FROM ggsql:penguinsloads the built-in penguins datasetbill_len AS x, bill_dep AS ymaps bill length to the x-axis and bill depth to the y-axisDRAW pointcreates a scatter plot using pointsLABELadds descriptive axis labels and a title
Variations
With Color by Species
VISUALISE bill_len AS x, bill_dep AS y, species AS color FROM ggsql:penguins
DRAW point
LABEL
title => 'Penguin Bill Dimensions by Species',
x => 'Bill Length (mm)',
y => 'Bill Depth (mm)'