Skip to content

gg_rsm() y axis not decoded #9

@IgorMancilla

Description

@IgorMancilla

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...

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions