Rx.Kino (rx v0.1.0)

Copy Markdown View Source

Optional helpers for rendering captured Rx plots with Kino.

Requires the optional {:kino, "~> 0.19.0"} dependency. This module does not depend on Livebook directly; it only calls Kino rendering APIs when available.

Summary

Functions

Renders one captured %Rx.Plot{} as a Kino image.

Captures R plots with Rx.plot/3 and renders them with Kino.

Renders captured plots as one image or a Kino grid.

Functions

image(plot)

Renders one captured %Rx.Plot{} as a Kino image.

plot(source, globals \\ %{}, opts \\ [])

Captures R plots with Rx.plot/3 and renders them with Kino.

The :columns option controls the Kino grid and is not passed to Rx.plot/3.

plots(plots, opts \\ [])

Renders captured plots as one image or a Kino grid.

A single plot returns a single Kino.Image. Multiple plots return Kino.Layout.grid/2 with columns: 2 by default.