Skip to content

Changing the x.label in Johnson Neyman plot using sim_slopes #70

Description

@esellars1

Hi there,

Firstly, thank you very much for such a helpful package.

I was wondering whether there is a way to change the x axis label in a Johnson Neyman plot using sim_slopes? When I use the following code, a JN plot is generated, but the x axis label is still the name of the moderator variable from my dataset, rather than what I have specified as a relabel:

E.g. The following example code generate JN plots, but without label changes:

sim_slopes(ModelA, pred = predictorA, modx = modA, johnson_neyman = TRUE, modx.labels= "Moderator A", jnplot = TRUE)

OR

sim_slopes(ModelA, pred = predictorA, modx = modA, johnson_neyman = TRUE, x.label= "Moderator A", jnplot = TRUE)

Thank you!

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions