Geom.point
The point geometry is used to draw various types of scatterplots.
Aesthetics
x
: X-axis position.y
: Y-axis position.color
(optional): Point color (categorial or continuous).
Examples
plot(dataset("datasets", "iris"), x="SepalLength", y="SepalWidth", Geom.point)
# Binding categorial data to the color aesthetic
plot(dataset("datasets", "iris"), x="SepalLength", y="SepalWidth",
color="Species", Geom.point)
# Binding continuous data to the color aesthetic
plot(dataset("datasets", "iris"), x="SepalLength", y="SepalWidth",
color="PetalLength", Geom.point)
# Binding categorial data to x
plot(dataset("lattice", "singer"), x="VoicePart", y="Height", Geom.point)
<!– TODO: shape aesthetic –>
<!– TODO: size aesthetic –>