Skip to content

Commit

Permalink
Switch plot axes in coev_plot_delta_theta()
Browse files Browse the repository at this point in the history
  • Loading branch information
Scott Claessens authored and Scott Claessens committed Jul 22, 2024
1 parent a4a8e79 commit 32bc2f2
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions R/coev_plot_delta_theta.R
Original file line number Diff line number Diff line change
Expand Up @@ -99,8 +99,8 @@ coev_plot_delta_theta <- function(object, variables = NULL, ...) {
dd <- dplyr::group_by(d, .data$response, .data$predictor)
dd <- dplyr::summarise(
dd,
lower = stats::quantile(.data$delta_theta, 0.02),
upper = stats::quantile(.data$delta_theta, 0.98),
lower = stats::quantile(.data$delta_theta, 0.025),
upper = stats::quantile(.data$delta_theta, 0.975),
.groups = "drop"
)
# plot
Expand All @@ -124,7 +124,7 @@ coev_plot_delta_theta <- function(object, variables = NULL, ...) {
ymin = -Inf, ymax = Inf
) +
ggplot2::facet_grid(
.data$response ~ .data$predictor,
.data$predictor ~ .data$response,
switch = "y"
) +
ggplot2::labs(
Expand Down

0 comments on commit 32bc2f2

Please sign in to comment.