Skip to content

Commit 0cd1467

Browse files
committed
Fix asymmetric_irt.qmd render crash: avoid expression() labs with ggplotly
expression(theta)/expression(P(theta)) axis labels broke plotly's verify_attr (unique.default() doesn't support type 'expression'), halting render at fig-example-irf. Swapped for plain Unicode strings.
1 parent 59ac7af commit 0cd1467

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

vignettes/asymmetric_irt.qmd

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -811,7 +811,7 @@ p <- ggplot(ex_df, aes(x = theta, y = p, colour = curve, group = curve, text = t
811811
) +
812812
scale_colour_manual(values = c("LPE" = irw_blue, "Symmetric (kappa=1)" = irw_grey), name = NULL) +
813813
scale_size_continuous(range = c(1.5, 5), guide = "none") +
814-
labs(x = expression(theta), y = expression(P(theta)))
814+
labs(x = "θ", y = "P(θ)")
815815
816816
ggplotly(p, tooltip = "text") |>
817817
layout(legend = list(orientation = "h", y = -0.15))

0 commit comments

Comments
 (0)