Search⌘ K
AI Features

Scatter Plot

Explore how to visualize relationships between two numerical variables using scatter plots in Altair. Learn when and why scatter plots are useful, how to implement them using the mark_point() function, and understand alternatives like bubble charts and hex bin plots to enhance your data storytelling skills.

Scatter plots visualize the relationship between two numerical variables. We can use them to identify patterns and trends in data and make predictions based on those trends.

An example of a scatter plot
An example of a scatter plot

When are scatter plots useful?

We can use a scatter plot when:

  • We have two numerical variables to compare.

  • We want to identify patterns and trends in the data.

  • We want to make predictions based on the relationships in the data. ...