Su-Shee on Nostr: I just š #R - the shortest, easiest way to actually generate something from ...
I just š #R - the shortest, easiest way to actually generate something from vega/vega-lite is.. three lines of code:
library(vegawidget)
vega_spec <- jsonlite::read_json("vega-lite.json")
vegawidget(vega_spec)
and et viola - there it is!
Published at
2024-08-16 20:02:55Event JSON
{
"id": "b5737533c5b18b37688b1d101f4a537fc703a307e1f02182a5bf18df795fce90",
"pubkey": "a321d92ec4dda29f257cddf8132129838ba706bab3aa6b29d382b41d058f06ad",
"created_at": 1723838575,
"kind": 1,
"tags": [
[
"t",
"r"
],
[
"proxy",
"https://fosstodon.org/users/sushee/statuses/112973484892405722",
"activitypub"
]
],
"content": "I just š #R - the shortest, easiest way to actually generate something from vega/vega-lite is.. three lines of code:\n\nlibrary(vegawidget)\nvega_spec \u003c- jsonlite::read_json(\"vega-lite.json\")\nvegawidget(vega_spec)\n\nand et viola - there it is!\n\nhttps://cdn.fosstodon.org/media_attachments/files/112/973/473/180/956/707/original/f787528a859c8009.png",
"sig": "be1829a43a2ea0614d19a4119b50984c67e7730dfcde8ac4b3ad0a8a7c603baae1c67ca5b1108bf0c30957512ee8f6cc0e5c6dd0b88d1050405031916030705a"
}