Scale contraints for 2D facets

未关闭
#408 0 条评论 1 个 reaction 已指派 0 人 在 GitHub 查看

维护者通常 6 天内回复

还没有人认领这个 Issue。

评估

难度
4/5
预计耗时
3-5 天
新手友好度
45/100
Issue 类型
缺陷
描述清晰度
基本清楚
活跃度
冷清
技术栈
rust, sql

调研方向

首先运行 issue 中的 SQL 可视化示例,并将渲染出的分面面板与企鹅数据的关系进行比较。当 Adelie、Chinstrap 和 Gentoo 出现在正确的面板中、移除 zero anchoring,并且按指定提供每个面板或 ggplot2 风格的行/列 scale 行为时,工作即完成。

由索引模型根据 Issue 内容生成。

描述

writer

Consider the following plot where x/y are free.

SELECT bill_len, bill_dep, species, island FROM ggsql:penguins
VISUALISE bill_len AS x, bill_dep AS y
DRAW point
FACET species BY island SETTING free => ['x', 'y']
LABEL
  title => 'Bill Dimensions by Species and Island',
  x => 'Bill Length (mm)',
  y => 'Bill Depth (mm)'
Image

There are a few things wrong with this plot:

  • BUG: The data-to-panel mapping is wrong.
    • Adelie penguins live on all three islands.
    • Chinstrap only on dream
    • Gentoo only on Biscoe.
  • BUG: Position scales are anchored to 0 for no apparent reason.
  • ENHANCEMENT: Position scales are free per-panel. In ggplot2, we have free scales per row/column. We should at least allow for ggplot2's behaviour of fixing x scales within a column and fixing y scales within a row to be an option.
主要语言
Rust
星标
575
派生
33
平均合并
8 天 23 小时
30 天内合并 PR
5

环境准备

这个项目没有提供开发容器、Dockerfile 或贡献指南,环境需要你自己搭建:先看它的 README,通用步骤见我们的新手贡献指南。

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

posit-dev/ggsql 的其他 Issue

查看 posit-dev/ggsql 的全部 Issue

相似的 Issue

更多 Rust Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。