Public
Edited
Sep 12, 2024
2 stars
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Inputs.table(toptracts)
Insert cell
Insert cell
Inputs.table(tops)
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Inputs.table(udpnyc_by_type)
Insert cell
highest = udpnyc.features.filter((f) => f.properties.soylent2020 > 5)
Insert cell
mhi_a_tops = highest
.filter(
(h) => h.properties.typology_origin == "MHI - Advanced Gentrification"
)
.map((m) => m.properties)
Insert cell
mhi_r_tops = highest
.filter((h) => h.properties.typology_origin == "MHI - At Risk of Exclusion")
.map((m) => m.properties)
Insert cell
tops = mhi_a_tops.concat(mhi_r_tops).sort((s) => s.soylent20).map(m => {return {
type: m.typology_origin,
soylent2020: m.soylent2020,
bodega2020: m.soylent2020_bodega,
soylent2021: m.soylent2021,
neighborhood: m.municipali
};})
Insert cell
Insert cell
average = (array) => array.reduce((a, b) => a + b) / array.length
Insert cell
Insert cell
vendorRegression(udpnyc_by_type)
Insert cell
percentsRegression = reg
.regressionLinear()
.x((d) => d.percent_soylent_20)
.y((d) => d.percent_soylent_21)
Insert cell
percentsRegression(udpnyc_by_type_nooutlier)
Insert cell
percentsRegression(udpnyc_by_type)
Insert cell
Insert cell
Insert cell
colors2020 = d3.quantize(d3.interpolateViridis, 6)
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
L = require("leaflet@1.2.0")
Insert cell
Insert cell
RegPlot = addRegression(Plot_)
Insert cell
Insert cell
reg = require("d3-regression@1")
Insert cell
import { Plot as Plot_ } from "@fil/plot-splom"
Insert cell
Insert cell
udpnyc = FileAttachment("udpnyc-soylentcounts.geojson").json()
Insert cell
soylent20 = FileAttachment("soylent2020-categorized.geojson").json()
Insert cell
soylent21 = FileAttachment("soylent-2021.geojson").json()
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