https://github.com/scicloj/plotje
simple and easy plotting
https://github.com/scicloj/plotje
clojure datavis grammar-of-graphics plotting
Last synced: about 1 month ago
JSON representation
simple and easy plotting
- Host: GitHub
- URL: https://github.com/scicloj/plotje
- Owner: scicloj
- License: mit
- Created: 2026-04-01T20:06:54.000Z (3 months ago)
- Default Branch: main
- Last Pushed: 2026-05-19T13:14:26.000Z (about 1 month ago)
- Last Synced: 2026-05-19T16:05:38.538Z (about 1 month ago)
- Topics: clojure, datavis, grammar-of-graphics, plotting
- Language: Clojure
- Homepage: https://scicloj.github.io/plotje/
- Size: 44 MB
- Stars: 7
- Watchers: 0
- Forks: 3
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
# Plotje
Composable plotting in Clojure

---------------------
Plotje is a Clojure library for composable plotting, inspired by
the Grammar of Graphics.
## General info
|||
|-|-|
|Website | [https://scicloj.github.io/plotje/](https://scicloj.github.io/plotje/)
|Source |[](https://github.com/scicloj/plotje)|
|Deps |[](https://clojars.org/org.scicloj/plotje)|
|License |[MIT](https://github.com/scicloj/plotje/blob/main/LICENSE)|
|Status |🛠alpha🛠|
## Usage
Add to your `deps.edn`:
```clojure
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](https://scicloj.github.io/kindly) convention
such as [Clay](https://scicloj.github.io/clay/).
## Quick example
Line chart with point markers from plain Clojure data:
```clj
(-> [{: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:
```clj
(-> (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"}))
```

## License
Copyright © 2025-2026 Scicloj
Distributed under the MIT License.