How to create custom symbols to use with d3.symbol().
As far as I understood, commands are theese.
Readapted from this fiddle.
| #html-to-freq.py | |
| # original lesson: https://programminghistorian.org/en/lessons/counting-frequencies | |
| # We've added json to the list of imports — you don't need to install anything, | |
| # json is part of the Python standard library. | |
| import urllib.request, urllib.error, urllib.parse, json, obo | |
| # Notice that instead of requesting the HTML directly, we're now | |
| # making a request to the backend API — meaning a server that returns |
| license: gpl-3.0 |
| license: mit | |
| border: no | |
| height: 1000 |
| source | target | weight | |
|---|---|---|---|
| 1 | 3 | 5 | |
| 1 | 8 | 3 | |
| 1 | 9 | 3 | |
| 1 | 12 | 3 | |
| 1 | 15 | 2 | |
| 1 | 23 | 3 | |
| 1 | 26 | 2 | |
| 1 | 37 | 2 | |
| 1 | 46 | 2 |
| license: apache-2.0 |
| # ------------------------------------------------------------------------------------------ | |
| # Basically all translated from the Python example at https://atproto.com/blog/create-post | |
| # ------------------------------------------------------------------------------------------ | |
| library(httr2) | |
| # Create a logged-in API session object | |
| session <- request("https://bsky.social/xrpc/com.atproto.server.createSession") |> | |
| req_method("POST") |> | |
| req_body_json(list( |
| #EXTM3U | |
| #EXTINF:-1,BBC - Radio 1 | |
| http://a.files.bbci.co.uk/media/live/manifesto/audio/simulcast/hls/uk/sbr_med/ak/bbc_radio_one.m3u8 | |
| #EXTINF:-1,BBC - Radio 1Xtra | |
| http://a.files.bbci.co.uk/media/live/manifesto/audio/simulcast/hls/uk/sbr_med/ak/bbc_1xtra.m3u8 | |
| #EXTINF:-1,BBC - Radio 1Dance | |
| http://a.files.bbci.co.uk/media/live/manifesto/audio/simulcast/hls/uk/sbr_med/ak/bbc_radio_one_dance.m3u8 | |
| #EXTINF:-1,BBC - Radio 1Relax | |
| http://a.files.bbci.co.uk/media/live/manifesto/audio/simulcast/hls/uk/sbr_med/ak/bbc_radio_one_relax.m3u8 | |
| #EXTINF:-1,BBC - Radio 2 |
| # Compiled source # | |
| ################### | |
| *.com | |
| *.class | |
| *.dll | |
| *.exe | |
| *.o | |
| *.so | |
| # Packages # |
library(tidyverse)
library(silgelib)
theme_set(theme_plex())
babynames <- read_csv('https://raw.githubusercontent.com/rfordatascience/tidytuesday/master/data/2022/2022-03-22/babynames.csv')
#> Rows: 1924665 Columns: 5
#> ── Column specification ────────────────────────────────────────────────────────
#> Delimiter: ","
#> chr (2): sex, name