Skip to content

Instantly share code, notes, and snippets.

@aborruso
Created December 31, 2022 13:54
Embed
What would you like to do?
Vega-Lite spec from Sat Dec 31 2022
{
"config": {"view": {"continuousWidth": 400, "continuousHeight": 300}},
"data": {"name": "data-288e896a4345312b0aa00e9a6250a4d8"},
"facet": {"row": {"field": "param", "type": "nominal"}},
"spec": {
"layer": [
{
"mark": {"type": "rule", "color": "grey", "strokeWidth": 0.5},
"encoding": {
"x": {"field": "period", "type": "ordinal"},
"y": {"field": "minimum", "title": null, "type": "quantitative"},
"y2": {"field": "maximum", "title": null}
}
},
{
"mark": {"type": "point", "color": "grey", "filled": true, "size": 15},
"encoding": {
"x": {"field": "period", "type": "ordinal"},
"y": {"field": "minimum", "title": null, "type": "quantitative"}
}
},
{
"mark": {"type": "point", "color": "grey", "filled": true, "size": 15},
"encoding": {
"x": {"field": "period", "type": "ordinal"},
"y": {"field": "maximum", "title": null, "type": "quantitative"}
}
},
{
"mark": {
"type": "line",
"color": "#ffa500",
"strokeDash": [5, 5],
"strokeWidth": 1
},
"encoding": {
"x": {"field": "period", "type": "ordinal"},
"y": {
"field": "median",
"scale": {"zero": false},
"title": null,
"type": "quantitative"
}
}
},
{
"mark": {"type": "line", "color": "#0000ff", "strokeWidth": 1},
"encoding": {
"x": {"field": "period", "type": "ordinal"},
"y": {
"field": "mean",
"scale": {"zero": false},
"title": null,
"type": "quantitative"
}
}
}
],
"height": 100,
"width": 470
},
"resolve": {"scale": {"y": "independent"}},
"$schema": "https://vega.github.io/schema/vega-lite/v4.17.0.json",
"datasets": {
"data-288e896a4345312b0aa00e9a6250a4d8": [
{
"id": 0,
"period": "2019_q1",
"param": "rNBR",
"minimum": -0.19873046875,
"maximum": 0.198974609375,
"mean": 0.0024139534216374,
"median": 0,
"standard_deviation": 0.0314384773373603,
"count": 48721
},
{
"id": 0,
"period": "2019_q1",
"param": "BAIS2",
"minimum": -0.31005859375,
"maximum": 0.611328125,
"mean": 0.1780042499303817,
"median": 0.1734619140625,
"standard_deviation": 0.0842935144901275,
"count": 48721
},
{
"id": 0,
"period": "2019_q1",
"param": "NDWI",
"minimum": -0.77685546875,
"maximum": -0.4306640625,
"mean": -0.647368848323822,
"median": -0.654296875,
"standard_deviation": 0.0394544042646884,
"count": 48721
},
{
"id": 0,
"period": "2019_q1",
"param": "MSI",
"minimum": 0.38330078125,
"maximum": 1.033203125,
"mean": 0.649444043636322,
"median": 0.6376953125,
"standard_deviation": 0.0827101469039917,
"count": 48721
},
{
"id": 1,
"period": "2019_q2",
"param": "rNBR",
"minimum": -0.19189453125,
"maximum": 0.31005859375,
"mean": 0.0024905672762542,
"median": 0,
"standard_deviation": 0.0418945141136646,
"count": 48721
},
{
"id": 1,
"period": "2019_q2",
"param": "BAIS2",
"minimum": -0.0122451782226562,
"maximum": 0.6748046875,
"mean": 0.3807898759841919,
"median": 0.3681640625,
"standard_deviation": 0.0943681448698043,
"count": 48721
},
{
"id": 1,
"period": "2019_q2",
"param": "NDWI",
"minimum": -0.75439453125,
"maximum": -0.439453125,
"mean": -0.61435467004776,
"median": -0.62451171875,
"standard_deviation": 0.0449339486658573,
"count": 48721
},
{
"id": 1,
"period": "2019_q2",
"param": "MSI",
"minimum": 0.419189453125,
"maximum": 1.54296875,
"mean": 0.8054220080375671,
"median": 0.77490234375,
"standard_deviation": 0.1499689817428589,
"count": 48721
},
{
"id": 2,
"period": "2019_q3",
"param": "rNBR",
"minimum": -0.323974609375,
"maximum": 0.2296142578125,
"mean": -0.0004788156074937,
"median": 0,
"standard_deviation": 0.0420902296900749,
"count": 48721
},
{
"id": 2,
"period": "2019_q3",
"param": "BAIS2",
"minimum": 0.34423828125,
"maximum": 0.99658203125,
"mean": 0.6360902786254883,
"median": 0.62646484375,
"standard_deviation": 0.0928094610571861,
"count": 48721
},
{
"id": 2,
"period": "2019_q3",
"param": "NDWI",
"minimum": -0.71435546875,
"maximum": -0.21728515625,
"mean": -0.5001660585403442,
"median": -0.51025390625,
"standard_deviation": 0.0585569366812706,
"count": 48721
},
{
"id": 2,
"period": "2019_q3",
"param": "MSI",
"minimum": 0.6865234375,
"maximum": 2.451171875,
"mean": 1.2841036319732666,
"median": 1.267578125,
"standard_deviation": 0.2155469805002212,
"count": 48721
},
{
"id": 3,
"period": "2019_q4",
"param": "rNBR",
"minimum": -0.32373046875,
"maximum": 0.345458984375,
"mean": -0.0012349825119599,
"median": 0,
"standard_deviation": 0.0511834062635898,
"count": 48721
},
{
"id": 3,
"period": "2019_q4",
"param": "BAIS2",
"minimum": 0.224853515625,
"maximum": 0.99462890625,
"mean": 0.6712027788162231,
"median": 0.66943359375,
"standard_deviation": 0.1128299832344055,
"count": 48721
},
{
"id": 3,
"period": "2019_q4",
"param": "NDWI",
"minimum": -0.60302734375,
"maximum": -0.2257080078125,
"mean": -0.436805248260498,
"median": -0.442626953125,
"standard_deviation": 0.0549474954605102,
"count": 48721
},
{
"id": 3,
"period": "2019_q4",
"param": "MSI",
"minimum": 0.71484375,
"maximum": 2.224609375,
"mean": 1.4279992580413818,
"median": 1.4453125,
"standard_deviation": 0.2449673563241958,
"count": 48721
},
{
"id": 4,
"period": "2020_q1",
"param": "rNBR",
"minimum": -0.1708984375,
"maximum": 0.2685546875,
"mean": 0.0027039772830903,
"median": 0,
"standard_deviation": 0.0331869460642337,
"count": 48721
},
{
"id": 4,
"period": "2020_q1",
"param": "BAIS2",
"minimum": -0.2474365234375,
"maximum": 0.65576171875,
"mean": 0.1114313080906868,
"median": 0.09991455078125,
"standard_deviation": 0.104435309767723,
"count": 48721
},
{
"id": 4,
"period": "2020_q1",
"param": "NDWI",
"minimum": -0.76171875,
"maximum": -0.443603515625,
"mean": -0.6500694155693054,
"median": -0.65478515625,
"standard_deviation": 0.0385646410286426,
"count": 48721
},
{
"id": 4,
"period": "2020_q1",
"param": "MSI",
"minimum": 0.30859375,
"maximum": 1.0556640625,
"mean": 0.6088681817054749,
"median": 0.5986328125,
"standard_deviation": 0.0770588293671608,
"count": 48721
},
{
"id": 5,
"period": "2020_q2",
"param": "rNBR",
"minimum": -0.189697265625,
"maximum": 0.31005859375,
"mean": 0.0031536663882434,
"median": 0,
"standard_deviation": 0.0402193143963813,
"count": 48721
},
{
"id": 5,
"period": "2020_q2",
"param": "BAIS2",
"minimum": -0.10223388671875,
"maximum": 0.6298828125,
"mean": 0.2886889278888702,
"median": 0.2822265625,
"standard_deviation": 0.0968604981899261,
"count": 48721
},
{
"id": 5,
"period": "2020_q2",
"param": "NDWI",
"minimum": -0.74609375,
"maximum": -0.4541015625,
"mean": -0.6376568675041199,
"median": -0.64501953125,
"standard_deviation": 0.0398501381278038,
"count": 48721
},
{
"id": 5,
"period": "2020_q2",
"param": "MSI",
"minimum": 0.427978515625,
"maximum": 1.3330078125,
"mean": 0.7161921262741089,
"median": 0.6923828125,
"standard_deviation": 0.1222376301884651,
"count": 48721
},
{
"id": 6,
"period": "2020_q3",
"param": "rNBR",
"minimum": -0.265625,
"maximum": 0.2227783203125,
"mean": 0.0010670238407328,
"median": 0,
"standard_deviation": 0.0424292311072349,
"count": 48721
},
{
"id": 6,
"period": "2020_q3",
"param": "BAIS2",
"minimum": 0.32861328125,
"maximum": 0.95458984375,
"mean": 0.5860545039176941,
"median": 0.58349609375,
"standard_deviation": 0.0783529952168464,
"count": 48721
},
{
"id": 6,
"period": "2020_q3",
"param": "NDWI",
"minimum": -0.72509765625,
"maximum": -0.2088623046875,
"mean": -0.5039641261100769,
"median": -0.5078125,
"standard_deviation": 0.0461582876741886,
"count": 48721
},
{
"id": 6,
"period": "2020_q3",
"param": "MSI",
"minimum": 0.640625,
"maximum": 2.15625,
"mean": 1.1674352884292605,
"median": 1.15234375,
"standard_deviation": 0.1782342493534088,
"count": 48721
},
{
"id": 7,
"period": "2020_q4",
"param": "rNBR",
"minimum": -0.2783203125,
"maximum": 0.408203125,
"mean": 0.0025553021114319,
"median": 0,
"standard_deviation": 0.0544433109462261,
"count": 48721
},
{
"id": 7,
"period": "2020_q4",
"param": "BAIS2",
"minimum": 0.08984375,
"maximum": 0.98876953125,
"mean": 0.5265297889709473,
"median": 0.51123046875,
"standard_deviation": 0.155583918094635,
"count": 48721
},
{
"id": 7,
"period": "2020_q4",
"param": "NDWI",
"minimum": -0.638671875,
"maximum": -0.254638671875,
"mean": -0.4830969572067261,
"median": -0.50048828125,
"standard_deviation": 0.0672116875648498,
"count": 48721
},
{
"id": 7,
"period": "2020_q4",
"param": "MSI",
"minimum": 0.58984375,
"maximum": 2.20703125,
"mean": 1.1435422897338867,
"median": 1.09375,
"standard_deviation": 0.2782072424888611,
"count": 48721
}
]
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment