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.