Skip to content

Commit

Permalink
don't use expression as label
Browse files Browse the repository at this point in the history
  • Loading branch information
teunbrand committed Jan 30, 2025
1 parent 64cce06 commit b9cf463
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion R/umxDoC.R
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ umxDiffMZ <- function(x, y, data, sep = "_T", mzZygs = c("MZFF", "MZMM"), zyg =
R2 = round(sumry$r.squared, 3)
pvalStr = paste0(", p ", umxAPA(pvalue, addComparison = TRUE, digits = digits, report = "none"))
blurb = umxAPA(beta, se=SE, report = "expression", suffix = pvalStr)
p = p + annotate("text", x = labxy[1], y = labxy[2], label = blurb)
p = p + annotate("text", x = labxy[1], y = labxy[2], label = deparse(blurb), parse = TRUE)
p = p + theme_bw() # + hrbrthemes::theme_ipsum()
print(p)
}
Expand Down

0 comments on commit b9cf463

Please sign in to comment.