Composable plotting in Clojure
Plotje is a Clojure library for composable plotting, inspired by the Grammar of Graphics.
|||
|-|-|
|Website | https://scicloj.github.io/plotje/
|Source ||
|Deps |
|
|License |MIT|
|Status |π alphaπ |
Add to your deps.edn:
org.scicloj/plotje {:mvn/version "0.1.0"}
Several core dependencies (kindly, fastmath, clojure2d, membrane, wadogo) are still on alpha or beta channels. Adopters may need to ride those alpha-channel transitives until they cut stable releases.
Plotje is intended to be used with data-visualization tools that support the Kindly convention such as Clay.
Line chart with point markers from plain Clojure data:
(-> [{:month "Jan" :sales 120}
{:month "Feb" :sales 95}
{:month "Mar" :sales 140}
{:month "Apr" :sales 175}
{:month "May" :sales 160}
{:month "Jun" :sales 210}]
(pj/lay-line :month :sales)
pj/lay-point
(pj/options {:title "Monthly Sales"}))
Scatter plot matrix (SPLOM) β all pairwise combinations with color grouping:
(-> (rdatasets/datasets-iris)
(pj/pose (pj/cross [:sepal-length :sepal-width
:petal-length :petal-width]
[:sepal-length :sepal-width
:petal-length :petal-width])
{:color :species})
(pj/options {:title "Iris SPLOM"}))
Copyright Β© 2025-2026 Scicloj
Distributed under the MIT License.
Can you improve this documentation?Edit on GitHub
cljdoc builds & hosts documentation for Clojure/Script libraries
| Ctrl+k | Jump to recent docs |
| β | Move to previous article |
| β | Move to next article |
| Ctrl+/ | Jump to the search field |