Published
Edited
Jul 6, 2021
1 star
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
FileAttachment("naxa4bsk86471.png").image()
Insert cell
Insert cell
Insert cell
Plot.plot({
grid: true,
//inset: 10,
/*x: {
domain: [-180, 180]
},*/
y: {
domain: [-90, 90]
},
marks: [
Plot.rectX(population, Plot.binY({x: "proportion"}, {y: "lat", x: "population", cumulative: true}))
]
})
Insert cell
Insert cell
ncols 1440,
nrows 720,
xllcorner -180,
yllcorner -90,
cellsize 0.25,
NODATA_value -9999
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
_(longSlices).map().value()
Insert cell
_(longSlices).map('populationSlice').uniq().value()
Insert cell
sliceNumber = 2**2
Insert cell
total = d3.sum(population, d => d.population)
Insert cell
populationSlice = _(population)
.map(d => ({ ...d,
sliceLatNumber: latSlices[d.lat].populationSlice,
sliceLatAlternate: latSlices[d.lat].populationSlice % 2,
sliceLongNumber: longSlices[d.long].populationSlice,
sliceLongAlternate: longSlices[d.long].populationSlice % 2,
}))
.value()
Insert cell
_ = require('lodash')
Insert cell

Purpose-built for displays of data

Observable is your go-to platform for exploring data and creating expressive data visualizations. Use reactive JavaScript notebooks for prototyping and a collaborative canvas for visual data exploration and dashboard creation.
Learn more