Platform
Resources
Pricing
Sign in
Get started
Toph Tucker
Workspace
Fork
Public
Testing / Helping
By
Toph Tucker
Edited
Aug 24, 2023
Insert cell
Insert cell
function
PlotRecurse
(
options
,
level
)
{
return
Plot
.
plot
(
level
>
0
?
{
...
options
,
subtitle
:
PlotRecurse
(
{
...
options
,
height
:
options
.
height
/
2
,
title
:
undefined
}
,
--
level
)
}
:
options
)
;
}
Insert cell
PlotRecurse
(
{
title
:
"Penguins"
,
height
:
1000
,
marks
:
[
Plot
.
dot
(
penguins
,
{
x
:
"body_mass_g"
,
y
:
"culmen_length_mm"
}
)
]
}
,
4
)
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
Fork
View
Export
Edit
Add comment
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML
PlotRecurse
Add comment
Copy import
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML
Add comment
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML