library(vegawidget)Warning: package 'vegawidget' was built under R version 4.3.3
'
{
"$schema": "https://vega.github.io/schema/vega-lite/v5.json",
"transform": [
{
"lookup": "country",
"from": {
"data": {
"url": "https://calvin-data304.netlify.app/data/GDP.csv"
},
"key": "country",
"fields": [
"GDP"
]
}
},
{
"lookup": "country",
"from": {
"data":{
"url": "https://calvin-data304.netlify.app/data/cow-gapminder.csv"
},
"key": "country",
"fields": [
"continent"
]
}
}
],
"mark": {
"type": "point"
},
"encoding": {
"x": {
"field": "GDP",
"type": "quantitative",
"scale": {"type": "log"},
"axis": {
"format": ".0s"
}
},
"y": {
"field": "obesity",
"type": "quantitative"
},
"tooltip": [
{"field": "country", "type": "nominal"},
{"field": "obesity", "type": "quantitative"},
{"field": "GDP", "type": "quantitative"},
{"field": "continent", "type": "nominal"}
],
"facet": {
"field": "continent",
"type": "nominal",
"columns": 3,
},
},
"height": 150,
"width": 200,
"data": {
"url": "https://calvin-data304.netlify.app/data/obesity.csv"
},
}
'[1] "\n{\n \"$schema\": \"https://vega.github.io/schema/vega-lite/v5.json\",\n \"transform\": [\n {\n \"lookup\": \"country\",\n \"from\": {\n \"data\": {\n \"url\": \"https://calvin-data304.netlify.app/data/GDP.csv\"\n },\n \"key\": \"country\",\n \"fields\": [\n \"GDP\"\n ]\n }\n },\n {\n \"lookup\": \"country\",\n \"from\": {\n \"data\":{\n \"url\": \"https://calvin-data304.netlify.app/data/cow-gapminder.csv\"\n },\n \"key\": \"country\",\n \"fields\": [\n \"continent\"\n ]\n }\n }\n ],\n \"mark\": {\n \"type\": \"point\"\n },\n \"encoding\": {\n \"x\": {\n \"field\": \"GDP\",\n \"type\": \"quantitative\",\n \"scale\": {\"type\": \"log\"},\n \"axis\": {\n \"format\": \".0s\"\n }\n },\n \"y\": {\n \"field\": \"obesity\",\n \"type\": \"quantitative\"\n },\n \"tooltip\": [\n {\"field\": \"country\", \"type\": \"nominal\"},\n {\"field\": \"obesity\", \"type\": \"quantitative\"},\n {\"field\": \"GDP\", \"type\": \"quantitative\"},\n {\"field\": \"continent\", \"type\": \"nominal\"}\n ],\n \"facet\": {\n \"field\": \"continent\",\n \"type\": \"nominal\",\n \"columns\": 3,\n },\n },\n \"height\": 150,\n \"width\": 200,\n \"data\": {\n \"url\": \"https://calvin-data304.netlify.app/data/obesity.csv\"\n },\n} \n"