View Source Changelog
v0.2.0 (2023-09-23)
Added
- Add
Tucan.jointplot/4
composite plot.
Tucan.jointplot(
:penguins,
"Beak Length (mm)",
"Beak Depth (mm)",
marginal: :density,
color_by: "Species",
marginal_opts: [fill_opacity: 0.5]
)
- Add
Tucan.punchcard/5
plot. This is similar to heatmap but the third dimension is encoded by size instead of color.
Tucan.punchcard(:glue, "Task", "Model", "Score")
|> Tucan.color_by("Score", recursive: true, type: :quantitative)
|> Tucan.set_size(250, 250)
- Add
Tucan.heatmap/5
plot.
Tucan.heatmap(:glue, "Task", "Model", "Score", annotate: true, text: [format: ".1f"])
|> Tucan.set_size(250, 250)
- Add
Tucan.hruler/2
,Tucan.vruler/2
andTucan.ruler/4
helpers.
Tucan.scatter(:iris, "petal_width", "petal_length", width: 300)
|> Tucan.hruler(3, line_color: "green")
|> Tucan.vruler("petal_width", color_by: "species", stroke_width: 3)
|> Tucan.hruler("petal_length", color_by: "species")
Add
Tucan.Legend
module for customizing legend properties.Add
Tucan.Scale
helper module with helper functions for working with scales, likeTucan.Scale.set_color_scheme/3
.Add
Tucan.set_size/3
helper for setting both width and height at once.Add
Tucan.Axes.set_xy_titles/3
for setting axes titles at once.Port more themes from
vega-themes
, checkTucan.Themes
for all available themes.Add
Tucan.layers/2
helper
Tucan.layers([
Tucan.scatter(:iris, "petal_width", "petal_length", point_color: "red"),
Tucan.scatter(:iris, "sepal_width", "sepal_length", point_color: "green")
])
Added plots options
- Support
:filled
option inTucan.scatter/4
- Support
:wrapped
mode inTucan.facet_by/4
- Support
:color_by
option inTucan.stripplot/3
- Support
:line_color
option inTucan.lineplot/4
- Support
:point_color
,:point_shape
and:point_size
inTucan.scatter/4
Fixed
- Support setting
:orient
inTucan.density/3
. - Make size encodings quantitative by default.
Deprecated
- Made
Tucan.VegaLiteUtils
private. Tucan.Axes.put_axis_options
is renamed toTucan.Axes.put_options/3
- Rename
:groupby
to:group_by
inTucan.boxplot/3
options.
v0.1.1 (2023-08-29)
Added
- Add
concat/2
,hconcat/2
andvconcat/2
helper concatenation functions.
v0.1.0 (2023-08-28)
Initial release.