Skip to content

How to make bold text in display.statistical.result? #171

Answered by jmlivingstone
jarbet asked this question in Q&A
Discussion options

You must be logged in to vote

Instead of using display.statistical.result you can do the following

pvalue.formatted <- list(
        base = scientific.notation(fisher$p.value, digits = 2, type = 'list')$base,
        exponent = scientific.notation(fisher$p.value, type = 'list')$exponent
        );

create.scatterplot(
    formula = y ~ x,
    data = simple.data,
    resolution = 200,
    filename = 'test.png',
    left.padding = 5,
    right.padding = 5,
    width = 8,
    main = bquote(bold(.(odds.ratio.text)~ " P"==.(pvalue.formatted$base)~"x"~.(as.character(10))^. 
(as.character((pvalue.formatted$exponent))))),
    main.cex = 1.3
    );

Replies: 2 comments 2 replies

Comment options

You must be logged in to vote
1 reply
@jarbet
Comment options

jarbet Mar 13, 2024
Maintainer Author

Comment options

You must be logged in to vote
1 reply
@jarbet
Comment options

jarbet Mar 13, 2024
Maintainer Author

Answer selected by jarbet
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants