Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Continued Geom Dev #47

Merged
merged 10 commits into from
Jun 17, 2024
Merged

Continued Geom Dev #47

merged 10 commits into from
Jun 17, 2024

Conversation

rsh52
Copy link
Contributor

@rsh52 rsh52 commented Jun 14, 2024

Description

This PR seeks to further optimize the use and structure of Geoms in this package, as well as to add some additional features. Currently in draft.

Proposed Changes

List changes below in bullet format:

  • Restructure geom set up so that layer() is called in the constructor function instead of in ggplot_add(). This gives the benefit of auto-tabbing aes() params (including custom ones like in geom_swim_label()), and warnings associated with the true function instead of ggplot_add() as brought up in [BUG] ggplot_add.() Instead of Parent Function in Default Error Messages #46
  • Add support for indicators in geom_swim_lane() that add points onto the linewidth of geom_swim_lane().
    • Still to be finished, as mentioned below

Remaining TODOs:

  • Convert geom_swim_arrow() to same structure, a little tricky with how we manipulate data/mapping
  • Formalize and fix indicator_* params in geom_swim_label() to appear in legend as submitted in [FEATURE] Offset Indicators for Segments #45
    • To move to new PR

Issues Addressed

Known Issues

  • geom_swim_arrow() aes() does not autofill
  • geom_swim_arrow() requires data to be specified in current method to allow for proportional arrow_neck_length when val is NULL

rsh52 and others added 6 commits May 31, 2024 16:46
- warnings appear for lineend and linejoin
- need to make conditional
- need to determine what data must look like to work
Not standard, will not display in legend
@rsh52 rsh52 added bug Something isn't working enhancement New feature or request labels Jun 14, 2024
@rsh52 rsh52 self-assigned this Jun 14, 2024
@rsh52 rsh52 marked this pull request as ready for review June 17, 2024 18:20
@rsh52 rsh52 merged commit 497c8d1 into main Jun 17, 2024
9 checks passed
@rsh52 rsh52 deleted the geom_dev_continued branch June 17, 2024 18:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[BUG] ggplot_add.() Instead of Parent Function in Default Error Messages
1 participant