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

gg_rsm() y axis not decoded #9

Open
IgorMancilla opened this issue Nov 28, 2023 · 2 comments
Open

gg_rsm() y axis not decoded #9

IgorMancilla opened this issue Nov 28, 2023 · 2 comments

Comments

@IgorMancilla
Copy link

Hi,
I've made some rsm graphs, and it works perfectly, except that the y axis is not decoded, so it still displays either x1 or x2 or x2, etc... I've tried using ylab but it only changes the last graph. Here's an example code:

girder_experiment$group <- sample(c(1:4), size = 36, replace = T)
girder_coded <- coded.data(girder_experiment)
girder_rsm <- rsm(response ~ SO(x1, x2, x3), data = girder_coded)
plot <- gg_rsm(girder_rsm, ~ x1 + x2 + x3, filled = T, decode = T, n_columns = 3)

I've noticed that the values of the plot
plot[[1]][["labels"]][["x"]] is empty, while
plot[[1]][["labels"]][["y"]] contains the coded values. The caption that usually contains the at information also includes the x axis label, masking the error. I've managed to "fix" this by substituting these values manually. I don't know enough to find out where this arises, however...

@toledo60
Copy link
Owner

Thank you for pointing out this issue. I plan on completely rewriting gg_rsm and include this fix among other new features in the next update. I hope to have this update released in CRAN by the end of the year.

I will leave this issue open until it is fixed

@IgorMancilla
Copy link
Author

Great, thanks! It's a very useful package :)

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

No branches or pull requests

2 participants