Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions DESCRIPTION
Original file line number Diff line number Diff line change
Expand Up @@ -22,13 +22,13 @@ Imports:
metafor,
ggplot2,
ggdist,
ggh4x,
ggtext,
ggbeeswarm,
glue,
Rdpack,
stringr,
mathjaxr
mathjaxr,
legendry (>= 0.2)
RoxygenNote: 7.3.2
Roxygen: list(markdown = TRUE)
RdMacros: Rdpack, mathjaxr
Expand Down
3 changes: 1 addition & 2 deletions R/jamovimdiff2x2.b.R
Original file line number Diff line number Diff line change
Expand Up @@ -321,8 +321,7 @@ jamovimdiff2x2Class <- if (requireNamespace('jmvcore', quietly=TRUE)) R6::R6Clas


myplot$scales$scales[[2]]$labels <- mylabs
myplot <- myplot + ggplot2::guides(x = ggh4x::guide_axis_nested(delim = " - "))

myplot <- myplot + guides(x = legendry::guide_axis_nested(key = " - "))

print(myplot)
TRUE
Expand Down
8 changes: 5 additions & 3 deletions R/plot_meta.R
Original file line number Diff line number Diff line change
Expand Up @@ -588,9 +588,11 @@ esci_plot_difference_axis_x <- function(

# Just plot a truncated axis
myplot <- myplot + ggplot2::guides(
x.sec = ggh4x::guide_axis_truncated(
trunc_lower = new_lower + reference_value,
trunc_upper = new_upper + reference_value
x.sec = legendry::guide_axis_base(
cap = as.vector(rbind(
new_lower + reference_value,
new_upper + reference_value
))
)
)

Expand Down