Skip to content

Add simple vignette for tinyplot#571

Merged
strengejacke merged 5 commits into
mainfrom
tinyplot_vig
Sep 24, 2025
Merged

Add simple vignette for tinyplot#571
strengejacke merged 5 commits into
mainfrom
tinyplot_vig

Conversation

@strengejacke
Copy link
Copy Markdown
Member

No description provided.

@gemini-code-assist
Copy link
Copy Markdown

Summary of Changes

Hello @strengejacke, I'm Gemini Code Assist1! I'm currently reviewing this pull request and will post my feedback shortly. In the meantime, here's a summary to help you and other reviewers quickly get up to speed!

This pull request introduces a new vignette that provides a comprehensive guide on utilizing the tinyplot package for visualizing estimated marginal means. This expands the package's visualization capabilities by offering an alternative to existing plotting methods. Additionally, it includes a subtle refinement to the dodging behavior within the tinyplot function and updates the package's documentation to ensure the new vignette is properly integrated and accessible.

Highlights

  • New Vignette: A new vignette, 'Plotting estimated marginal means with tinyplot', has been added. This vignette demonstrates how to use the {tinyplot} package for visualizing estimated marginal means across various scenarios, including different types and numbers of predictors.
  • Documentation Updates: The package documentation and navigation (pkgdown/_pkgdown.yml and vignettes/overview_of_vignettes.Rmd) have been updated to include and link to the new tinyplot vignette, making it easily discoverable.
  • Plotting Adjustment: A minor adjustment was made to the tinyplot.estimate_means function, reducing the dodge value from 0.1 to 0.07 for pointrange and point plots when a color aesthetic is applied, likely to improve visual spacing.
Using Gemini Code Assist

The full guide for Gemini Code Assist can be found on our documentation page, here are some quick tips.

Invoking Gemini

You can request assistance from Gemini at any point by creating a comment using either /gemini <command> or @gemini-code-assist <command>. Below is a summary of the supported commands on the current page.

Feature Command Description
Code Review /gemini review Performs a code review for the current pull request in its current state.
Pull Request Summary /gemini summary Provides a summary of the current pull request in its current state.
Comment @gemini-code-assist Responds in comments when explicitly tagged, both in pull request comments and review comments.
Help /gemini help Displays a list of available commands.

Customization

To customize Gemini Code Assist for GitHub experience, repository maintainers can create a configuration file and/or provide a custom code review style guide (such as PEP-8 for Python) by creating and adding files to a .gemini/ folder in the base of the repository. Detailed instructions can be found here.

Limitations & Feedback

Gemini Code Assist may make mistakes. Please leave feedback on any instances where its feedback is incorrect or counter productive. You can react with 👍 and 👎 on @gemini-code-assist comments. If you're interested in giving your feedback about your experience with Gemini Code Assist for Github and other Google products, sign up here.

You can also get AI-powered code generation, chat, as well as code reviews directly in the IDE at no cost with the Gemini Code Assist IDE Extension.

Footnotes

  1. Review the Privacy Notices, Generative AI Prohibited Use Policy, Terms of Service, and learn how to configure Gemini Code Assist in GitHub here. Gemini can make mistakes, so double check it and use code with caution.

Copy link
Copy Markdown

@gemini-code-assist gemini-code-assist Bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review

This pull request introduces a new vignette for tinyplot, which is a valuable addition. The implementation is solid, but I've identified a few areas for improvement. My feedback includes suggestions to remove unnecessary package dependencies in the vignettes, correct some typos in the new documentation (one of which is critical as it breaks a help link), and refactor a magic number in the R code to enhance readability and maintainability.

Comment thread vignettes/plotting_tinyplot.Rmd
Comment thread R/tinyplot.R
Comment thread vignettes/plotting.Rmd Outdated
Comment thread vignettes/plotting_tinyplot.Rmd Outdated
Comment thread vignettes/plotting_tinyplot.Rmd
@codecov
Copy link
Copy Markdown

codecov Bot commented Sep 24, 2025

Codecov Report

❌ Patch coverage is 0% with 2 lines in your changes missing coverage. Please review.
✅ Project coverage is 90.62%. Comparing base (e8f539a) to head (284347a).
⚠️ Report is 1 commits behind head on main.

Files with missing lines Patch % Lines
R/tinyplot.R 0.00% 2 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main     #571      +/-   ##
==========================================
- Coverage   90.64%   90.62%   -0.03%     
==========================================
  Files          40       40              
  Lines        3358     3359       +1     
==========================================
  Hits         3044     3044              
- Misses        314      315       +1     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@strengejacke strengejacke merged commit 4c9c8a4 into main Sep 24, 2025
20 of 21 checks passed
@strengejacke strengejacke deleted the tinyplot_vig branch September 24, 2025 12:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant