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

Ability to edit labels and grid for 3-way interaction jnplot #75

Open
rorytboyle opened this issue Sep 21, 2023 · 0 comments
Open

Ability to edit labels and grid for 3-way interaction jnplot #75

rorytboyle opened this issue Sep 21, 2023 · 0 comments
Labels
enhancement New feature or request

Comments

@rorytboyle
Copy link

Thank you very much for providing this very useful package! I am using sim_slopes to probe a 3-way interaction between 3 continuous variables with a Johson-Neyman plot. I was wondering if it is possible to a) change the y-axis labels on the interaction plots and b) to arrange the subplots in a single row instead of in a 2 row grid (2 subplots in upper row and 1 subplot in lower row).

For example, using this code. I would like to change the y-axis label from "Slope of Illiteracy" to "Murder - Illiteracy Association" and instead of having the "Income = + 1 SD" plot on the bottom row, I would like that to appear to the right of the "Income = Mean" plot on the top row. I have searched the github Issues and stack overflow but cannot figure out an easy fix so chancing my arm here! Thank you.

dat <- data.frame(state.x77)

reg.mod = lm(data=dat, Murder ~ Illiteracy * Population * Income)
state_sim_slopes <- sim_slopes(reg.mod, pred = Illiteracy, modx = Population, 
                               mod2 = Income, jnplot = TRUE)

state_sim_slopes
@rorytboyle rorytboyle added the enhancement New feature or request label Sep 21, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant