Skip to content

Commit

Permalink
Swapped z- and y-axis labels in plot_surface
Browse files Browse the repository at this point in the history
  • Loading branch information
Kss2k committed Dec 18, 2024
1 parent d04ad82 commit 8c500a8
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions R/plot_interaction.R
Original file line number Diff line number Diff line change
Expand Up @@ -524,9 +524,9 @@ plot_surface <- function(x, z, y, xz = NULL, model,
plotly::plot_ly(z = ~proj_y, x = ~vals_x, y = ~vals_z, type = "surface",
colorbar = list(title = y)) |>
plotly::layout(title = sprintf("Surface Plot of Interaction Effect between %s and %s, on %s", x, z, y),
scene = list(xaxis = list(title = x),
zaxis = list(title = z),
yaxis = list(title = y)))
scene = list(xaxis = list(title = x),
zaxis = list(title = y),
yaxis = list(title = z)))
}


Expand Down

0 comments on commit 8c500a8

Please sign in to comment.