Skip to content

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