Platform
Resources
Pricing
Sign in
Get started
Russell Samora
Works at The Pudding. @russellsamora on Twitter.
Workspace
Fork
Public
By
Russell Samora
Edited
Mar 23, 2023
Fork of
Plot U.S. Map
Insert cell
Insert cell
Insert cell
Plot
.
plot
(
{
projection
:
"albers-usa"
,
width
,
marks
:
[
Plot
.
geo
(
nation
,
{
strokeOpacity
:
0.25
}
)
,
Plot
.
geo
(
states
,
{
strokeOpacity
:
0.25
}
)
,
Plot
.
dot
(
coordinates
,
{
x
:
"longitude"
,
y
:
"latitude"
,
symbol
:
"circle"
,
r
:
0.5
}
)
]
}
)
Insert cell
viewof
version
=
Inputs
.
radio
(
[
"non-contiguous"
,
"contiguous"
]
,
{
label
:
"select version"
,
value
:
"contiguous"
}
)
Insert cell
viewof
spacing
=
Inputs
.
select
(
[
"100"
,
"50"
,
"20"
,
"10"
,
"5"
]
,
{
label
:
"select spacing (miles)"
,
value
:
"50"
}
)
Insert cell
coordinates
=
d3
.
csv
(
`https://raw.githubusercontent.com/russellsamora/us-grid-points/main/output/${
version
}/us-grid-points-${
spacing
}mi.csv`
)
Insert cell
import
{
us
}
from
"@observablehq/us-geographic-data"
Insert cell
nation
=
topojson
.
feature
(
us
,
us
.
objects
.
nation
)
Insert cell
counties
=
topojson
.
feature
(
us
,
us
.
objects
.
counties
)
Insert cell
states
=
topojson
.
feature
(
us
,
us
.
objects
.
states
)
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.
Try it for free
Learn more
Compare fork
Fork
View
Export
Edit
Add comment
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML
Edit
Add comment
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML
Add comment
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML
version
Add comment
Copy import
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML
spacing
Add comment
Copy import
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML
coordinates
Add comment
Copy import
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML
Add comment
Copy import
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML
nation
Add comment
Copy import
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML
counties
Add comment
Copy import
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML
states
Add comment
Copy import
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML