Group and facet data in plots
mainTucan allows you to enhance visualizations by grouping data by semantic properties or creating facet plots to examine subgroups.
# Semantic grouping by color and shape
Tucan.scatter(:iris, "petal_width", "petal_length")
|> Tucan.color_by("species")
|> Tucan.shape_by("species")
# Creating facet plots using facet_by/4
Tucan.scatter(:iris, "petal_width", "petal_length")
|> Tucan.facet_by(:column, "species")
|> Tucan.color_by("species")