Merged
Conversation
Update column selection in save chartdata so that it doesn't include functions
Remove subdirectory 'chart' within overleaf atlas, consistent with grattan_save_overleaf. Update consequential test.
Change function signature for consistency with geom_point
Add automatic detection of horizontal/flipped charts when theme_grattan() is added to a plot. Introduces ggplot_add.grattan_theme (R/detect_flipped.R) which inspects coord_flip() and mappings (discrete y + continuous/NULL x) and rebuilds the theme with flipped = TRUE when detected; a throttled message is shown (once per 8 hours). Change flipped default to NULL, store original args on the theme object for detection, and strip the custom class before delegating to ggplot2.
Create claude.md instructions file, and also create a function that writes the file to your local directory.
Contributor
|
@wfmackey good shit - warms the heart |
Fix function signature of the ggplot_add.grattan_theme.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
grattan_write_ai_guide()function writes a style guide for AI coding assistants (Claude, Codex, Gemini) to your project directory.theme_grattan()now auto-detects horizontal/flipped charts and appliesflipped = TRUEautomatically. Detection triggers forcoord_flip()and bar charts (discrete y + continuous x). A message is shown every 8 hours when auto-detection fires. Setflipped = TRUEexplicitly to silence the message, orflipped = FALSEto opt out of auto-detection.check_chart_aspect_ratio()tocheck_chart().grattan_point_filledfunction signature for consistency withgeom_point.export_latex_codefor consistency withgrattan_save_overleaf.save_chartdatafunction.