How to make bold text in display.statistical.result? #171
-
Is it possible to make the output of Here is a made up example. I'm trying to get the entire title to be bold: suppressPackageStartupMessages(library(BoutrosLab.plotting.general));
tab <- cbind(c(500, 20000), c(5000, 400000));
fisher <- fisher.test(tab);
odds.ratio.text <- sprintf('Fisher\'s exact test: OR = %s (%s, %s)', round(fisher$estimate, 1), round(fisher$conf.int[1], 1), round(fisher$conf.int[2], 1));
main <- display.statistical.result(
x = fisher$p.value,
lower.cutoff = 1e-100,
digits = 1,
statistic.type = odds.ratio.text,
symbol = ', P:'
);
set.seed(123);
simple.data <- data.frame(
x = rnorm(2),
y = rnorm(2)
);
create.scatterplot(
formula = y ~ x,
data = simple.data,
resolution = 50,
main = main,
main.cex = 1.3,
); Created on 2024-03-13 with reprex v2.0.2 |
Beta Was this translation helpful? Give feedback.
Answered by
jmlivingstone
Mar 13, 2024
Replies: 2 comments 2 replies
-
Can you try: |
Beta Was this translation helpful? Give feedback.
1 reply
-
Instead of using display.statistical.result you can do the following
|
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
jarbet
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Instead of using display.statistical.result you can do the following