pgx
PGX — Lightweight Postgres for AI agents. Written in Rust. Thousands of isolated databases in one runtime. 🐘
翻譯準備中
Adds components to mapgl maps (MapLibre GL JS and Mapbox GL JS) that put what the reader sees in context: a live summary of the features in view compared with the whole map, a ranking of the features
翻譯準備中
資料JavaScript · RGitHub @JMTocho上線中營運者未確認
試用過了嗎? 點一下就好,不需要登入。
尚未偵測到更新。GitHub 發布版本後會顯示在這裡。
個人 GitHub 帳號下公開儲存庫的擁有者可以登入並驗證所有權,自行管理介紹,無需管理員核准。
登入並產生驗證檔案,在 30 分鐘內將其提交至此儲存庫的預設分支。其他分支或分叉儲存庫中的檔案無效。然後在下方檢查檔案,即可無需管理員核准直接管理專案。請保留檔案以維持管理權限。
如需登入,將前往登入頁面。登入後請回到此處,再次點擊所選的驗證按鈕。
在專案資料夾中執行 /nomorevibe verify,即可驗證所有權並自行管理介紹。
一分鐘完成驗證Context Components That Help Readers Understand 'mapgl' Maps
翻譯準備中
取自儲存庫 README
正在載入完整 README。
檢視完整 README ↗maplore adds components to mapgl maps that help readers understand what they are looking at: as they pan and zoom, the map tells them how the area in view compares with the rest.
add_view_summary(): what is in view, compared with the whole map.add_view_ranking(): which features stand out in view.add_context_tooltip(): whether a value is high or low, and its rank.add_feature_search(): find a place in your own data.maplore is an R package: you use it from R, and its interactive components are written in JavaScript and run in the browser. That is why it works in HTML pages, R Markdown and Quarto documents and dashboards, with no Shiny server.
# install.packages("pak")
pak::pak("JMTocho/maplore")
library(mapgl)
library(maplore)
maplibre(center = c(-64, -38.5), zoom = 3.4) |>
add_fill_layer(
id = "departments",
source = ar_departments,
fill_color = interpolate(
column = "growth",
values = c(-10, 0, 10),
stops = c("#b2182b", "#f7f7f7", "#2166ac")
)
) |>
add_view_summary("departments", "growth", name_column = "department", suffix = "%") |>
add_context_tooltip("departments", "growth", name_column = "department", suffix = "%")
The website explains each component, the included datasets and how maplore works.
maplore is experimental, and its functions may still change. Feedback and bug reports are welcome in the issues.
Much of the code was written with the help of an AI assistant (Claude, by Anthropic) and reviewed, tested and checked against independent calculations in R.