You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: CHANGELOG.md
+8-6Lines changed: 8 additions & 6 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -4,7 +4,7 @@
4
4
5
5
*Not yet released. These are forthcoming changes in the main branch.*
6
6
7
-
The new [raster mark](./README.md#raster)generates a raster image from spatial samples. For example, here is a gridded digital elevation model of Maungawhau, R’s [`volcano` dataset](./test/data/volcano.json):
7
+
The new [raster mark](./README.md#raster)and [contour mark](./README.md#contour) generate a raster image and smooth contours, respectively, from spatial samples. For example, the plot below shows a gridded digital elevation model of Maungawhau (R’s [`volcano` dataset](./test/data/volcano.json)) with contours every 10 meters:
8
8
9
9
[<imgsrc="./img/volcano.webp"width="640"alt="A heatmap of Maungawhau’s topography, showing the circular caldera and surrounding slopes">](https://observablehq.com/@observablehq/plot-raster)
For non-gridded or sparse data, the raster mark implements a variety of spatial interpolation methods to populate the raster grid. The *barycentric* interpolation method, shown below with data from the [Great Britain aeromagnetic survey](https://www.bgs.ac.uk/datasets/gb-aeromagnetic-survey/), uses barycentric coordinates from a Delaunay triangulation of the samples (small black dots).
21
+
For non-gridded or sparse data, the raster and contour marks implement a variety of spatial interpolation methods to populate the raster grid. The *barycentric* interpolation method, shown below with data from the [Great Britain aeromagnetic survey](https://www.bgs.ac.uk/datasets/gb-aeromagnetic-survey/), uses barycentric coordinates from a Delaunay triangulation of the samples (small black dots).
22
22
23
23
[<imgsrc="./img/ca55.webp"width="650"alt="A map showing the varying intensity of the magnetic field as periodically observed from an airplane flying in an approximate grid pattern">](https://observablehq.com/@observablehq/plot-raster)
24
24
@@ -37,7 +37,9 @@ Plot.plot({
37
37
})
38
38
```
39
39
40
-
Naturally, the raster mark works with Plot’s [projection system](./README.md#projection-options), allowing spatial samples to be shown in any geographic projections and in conjunction with other geographic data. The *equirectangular* projection is the natural choice for this gridded water vapor data from [NASA Earth Observations](https://neo.gsfc.nasa.gov/view.php?datasetId=MYDAL2_M_SKY_WV&date=2022-11-01).
40
+
TK, alternate visualization as contours.
41
+
42
+
Naturally, the raster and contour mark work with Plot’s [projection system](./README.md#projection-options), allowing spatial samples to be shown in any geographic projections and in conjunction with other geographic data. The *equirectangular* projection is the natural choice for this gridded water vapor data from [NASA Earth Observations](https://neo.gsfc.nasa.gov/view.php?datasetId=MYDAL2_M_SKY_WV&date=2022-11-01).
41
43
42
44
[<imgsrc="./img/water-vapor.png"width="650"alt="A map of global atmospheric water vapor, showing a higher concentration of water vapor near the equator">](https://observablehq.com/@observablehq/plot-raster)
43
45
@@ -67,15 +69,15 @@ Plot.plot({
67
69
68
70
TK random-walk for interpolating categorical data.
69
71
70
-
The *fill* and *fillOpacity* channels may alternatively be specified as continuous functions *f*(*x*, *y*) to be evaluated at each pixel centroid of the raster grid (without interpolation).
72
+
The *fill* and *fillOpacity* channels may alternatively be specified as continuous functions *f*(*x*, *y*) to be evaluated at each pixel centroid of the raster grid (without interpolation). TODO Show Mandelbrot instead.
71
73
72
74
[<imgsrc="./img/heatmap.png"width="640"alt="A heatmap of the trigonometric function atan2(y, x)">](https://observablehq.com/@observablehq/plot-raster)
The [vector mark](./README.md#vector) now supports the **shape** constant option. The built-in shapes are *arrow* (default) and *spike*. A custom shape can also be implemented, returning the corresponding SVG path data for the desired shape. The new [spike convenience constructor](./README.md#plotspikedata-options) creates a vector suitable for spike maps. The vector mark also now supports an **r** constant option to further customize the shape.
0 commit comments