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

cannot change axis labels in sim_slopes #56

Closed
mengliuveronica opened this issue Jun 17, 2021 · 2 comments
Closed

cannot change axis labels in sim_slopes #56

mengliuveronica opened this issue Jun 17, 2021 · 2 comments
Labels
bug Something isn't working

Comments

@mengliuveronica
Copy link

mengliuveronica commented Jun 17, 2021

Hi, I was trying to have sim_slopes display correct labels at the request of a reviewer. I cannot seem to find a way to make it work.

My complete label contains more than one word so I changed the variable names before I ran the model and hope to pass them on to sim_slopes() so that I don't need to change labels from this function. When I specify the variable names with escape symbol, "the variable name", an error message is returned:
"Error in [.data.frame(model.frame(model), , modx) :
undefined columns selected"

I wonder how to fix that? this is required before I could submit my revision. any input is appreciated. thank you!

@mengliuveronica mengliuveronica added the bug Something isn't working label Jun 17, 2021
@mengliuveronica mengliuveronica changed the title change labels in sim_slopes cannot change axis labels in sim_slopes Jun 17, 2021
@jacob-long jacob-long transferred this issue from jacob-long/jtools Apr 6, 2022
@jacob-long
Copy link
Owner

Terribly sorry for the long delay, my new job robbed me of a lot of my time to stay up to date with issues here. I've corrected the bug you encountered and added options that should make it easier for people to avoid the need to change their variables' names just to get the axis labels looking the way they want.

@esellars1
Copy link

Hi there,

Thank you for such a helpful package. I am having a similar issue to the question above, when I try to relabel the x axis using modx.label, I get the following error message: Warning: modx.labels or mod2.labels argument is not the same length as the number of moderator values used. It will be ignored. I would prefer not to have to change the variable name in my dataset, so wondered if you would be able to help me with where I am going wrong!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants