Skip to content

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

Description

@rorytboyle

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions