Public
Edited
Jun 1, 2023
Insert cell
Insert cell
<div style="max-height: 500px; overflow: scroll">${
Plot.plot({
height: 10000,
width: 700,
marginTop: 40,
marginRight: 20,
marginLeft: 100,
marginBottom: 30,
padding: 0,
color: { scheme: "YlGnBu" },
style: { "font-size": 10, "fontstroke": "#91bfdb"},
x: {
type: "band",
label: "Available Imaging Data",
paddingInner: 0.1,
domain: [
"CT-1",
"CT-2",
"CTA",
"DWI",
"ADC",
"3D-T1",
"3D-FLAIR",
"T1",
"T2",
"T2-FLAIR"
]
},
y: {
type: "band",
padding: 0.15,
tickSize: 0.1,
label: "All NorCOAST subjects"
},
marks: [
Plot.cell(data,
{x: "modality",
y: "subject-id",
fill: "#f6edf7"})
,
Plot.text(data, {x: "modality", y:"subject-id", text:"modality"})
]
})
}
</div>
Insert cell
<div style="max-height: 500px; max-width: 500px; overflow: scroll;">${
Plot.plot({
height: 10000,
width: 10000,
marginTop: 40,
marginRight: 20,
marginLeft: 100,
marginBottom: 30,
padding: 0,
color: { scheme: "YlGnBu" },
style: { "font-size": 10, fontstroke: "#91bfdb" },
facet: { marginRight: 90 },
x: {
type: "band",
label: "Available Imaging Data",
paddingInner: 0.1,
domain: [
"CT-1",
"CT-2",
"CTA",
"DWI",
"ADC",
"3D-T1",
"3D-FLAIR",
"T1",
"T2",
"T2-FLAIR"
]
},
y: {
type: "band",
padding: 0.15,
tickSize: 0.1,
label: "All NorCOAST subjects"
},
marks: [
Plot.cell(data, {
x: "modality",
y: "subject-id",
fx: "timepoint",
fill: "#f6edf7"
}),
Plot.text(data, { x: "modality", y: "subject-id", text: "modality" })
]
})
}
</div>
Insert cell
Insert cell
Object.assign(
Plot.plot({
height: 10000,
caption: "",
width: 1500,
marginTop: 40,
marginRight: 20,
marginLeft: 100,
marginBottom: 30,
padding: 0,
color: { scheme: "YlGnBu" },
style: { "font-size": 10, fontstroke: "#91bfdb", maxWidth: "20000px" },
x: {
type: "band",
label: "Available Imaging Data",
paddingInner: 0.1,
domain: [
"CT-1",
"CT-2",
"CTA",
"DWI",
"ADC",
"3D-T1",
"3D-FLAIR",
"T1",
"T2",
"T2-FLAIR"
]
},
fx: {
domain: [
"ses-clinical",
"ses-study-MR",
"18-mon-follow-up",
"36-mon-follow-up"
]
},
facet: { data: summary, x: "timepoint" },
y: {
type: "band",
padding: 0.15,

label: "All NorCOAST subjects"
},
marks: [
Plot.cell(summary, {
x: "modality",
y: "subject-id",
fill: "count"
}),
Plot.text(summary, { x: "modality", y: "subject-id", text: "modality" }),
Plot.gridX({ stroke: "#0868a3" }),
Plot.gridY({ stroke: "#0868a3" })
]
}),
{
style: `max-width: ${width}px; overflow: scroll; max-height: 500px; overflow-y: scroll`
}
)
Insert cell
aq_bas.filter((d) => d.modality === "CT-1").view()
Insert cell
viewof
Insert cell
aq_bas = aq.from(data)
Insert cell
import { aq, op } from "@uwdata/arquero"
Insert cell
import { data } from "475665a1dc42e82a"
Insert cell

One platform to build and deploy the best data apps

Experiment and prototype by building visualizations in live JavaScript notebooks. Collaborate with your team and decide which concepts to build out.
Use Observable Framework to build data apps locally. Use data loaders to build in any language or library, including Python, SQL, and R.
Seamlessly deploy to Observable. Test before you ship, use automatic deploy-on-commit, and ensure your projects are always up-to-date.
Learn more