Scatter Plot
Depicts the relationship between two variables using individual data points. This helps in identifying patterns, trends, and potential correlations between the variables. For example, it can be used to analyze the relationship between height and weight, or between study hours and exam scores.
Chart:
Code:
muze
.canvas()
.columns(["Weight_in_lbs"])
.rows(["Miles_per_Gallon"])
.detail(["Name"])
.layers([
{
mark: "point",
encoding: {
color: "Origin",
},
},
])