viz.heatmap
Heat map of a value over two category columns.
- Kind:
standard - Network: no
| Name | Type | Required | Default | Description |
|---|
table | file (Parquet) | yes | | Table to chart (Parquet or CSV). |
x | string | yes | | Column for the x axis. |
y | string | yes | | Column for the y axis. |
value | string | yes | | Numeric column to shade by. |
aggregate | string | no | mean | How to combine rows sharing a cell. One of sum, mean, median, min, max, count. |
scheme | string | no | viridis | Vega colour scheme name. |
title | string | no | blank | Chart title. ${item.key} labels each chart inside a map. |
width | number | no | 600 | Width in pixels. |
height | number | no | 400 | Height in pixels. |
format | string | no | png | Image format. html is a static, self-contained page. One of png, svg, html. |
Outputs🔗
| Name | Type | Description |
|---|
chart | file (PNG) | The rendered chart. |
spec | json (Vega-Lite) | The Vega-Lite spec the block built; edit it and render with viz.vegalite. |
Example🔗
- id: "@heatmap"
name: viz.heatmap
inputs: [{block: "@plots", output: result, as: table}]
args:
x: state
y: species
value: biomass
title: ''
format: png