Skip to content

Custom Scales and Font Size for histograms in ggscatterstats - Issue #898 #990

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

Open
wants to merge 5 commits into
base: main
Choose a base branch
from

Conversation

leolrl
Copy link

@leolrl leolrl commented Mar 28, 2025

Hello !

We hope you're doing well!

We have implemented a set of new features for ggscatterstats based on the recent issue regarding custom scales and font size adjustments. Specifically, we’ve added the following parameters:

  • xsidehistogram.scale: To set a custom scale for the histogram on the x-axis.
  • ysidehistogram.scale: To set a custom scale for the histogram on the y-axis.
  • marginal_axis_text_size: To adjust the font size of the numbers on the marginal axes.

For example, the following code demonstrates how these parameters can be used:

ggscatterstats(
  data = mtcars,
  x = wt,
  y = mpg,
  xsidehistogram.scale = c(0, 200),
  ysidehistogram.scale = c(0, 10),
  marginal_axis_text_size = 5
)

@katossky
Copy link

Linking to issue #898.

@katossky
Copy link

Can you post the plot that you obtain as an image ? You can just copy in R Studio then paste in the text field here on Github.

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.

3 participants