-
Notifications
You must be signed in to change notification settings - Fork 65
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
add.significance.stars output #230
Comments
Sorry for the long delay with my reply -- thanks for reporting this, I hope the above commit resolves the issue. Looking forward to any feedback. Thanks, Gergely |
Thanks for the fix! > pander(anova(model),add.significance.stars=T,missing="",caption="Risultati ANOVA")
--------------------------------------------------------------
Df Sum Sq Mean Sq F value Pr(>F)
--------------- ---- -------- --------- --------- --------- --
**treatment** 2 0.2317 0.1158 2.28 0.1036
**variety** 83 22.31 0.2688 5.291 1.077e-30
**Residuals** 418 21.24 0.05081
--------------------------------------------------------------
Table: Risultati ANOVA
Signif. codes: 0 '\*\*\*' 0.001 '\*\*' 0.01 '\*' 0.05 '.' 0.1 ' ' 1 Significance stars are not added anymore to the table and it also add another not needed empty column after Pr(>F). ----------------------------------------------------------
Df Sum Sq Mean Sq F value Pr(>F)
--------------- ---- -------- --------- --------- --------
**treatment** 2 0.2317 0.1158 2.28
**variety** 83 22.31 0.2688 5.291 * * *
**Residuals** 418 21.24 0.05081
----------------------------------------------------------
Table: Risultati ANOVA
Signif. codes: 0 '\*\*\*' 0.001 '\*\*' 0.01 '\*' 0.05 '.' 0.1 ' ' 1 Thanks again |
Ah, right -- sorry for the above typo, it should be fixed now. Please note that the |
Works like a charm! d> pander(anova(model),add.significance.stars = T,missing="")
-----------------------------------------------------------------
Df Sum Sq Mean Sq F value Pr(>F)
--------------- ---- -------- --------- --------- --------- -----
**variety** 83 8.309 0.1001 5.051 5.914e-29 * * *
**treatment** 2 0.1377 0.06885 3.474 0.0319 *
**Residuals** 418 8.285 0.01982
-----------------------------------------------------------------
Table: Analysis of Variance Table
Signif. codes: 0 '\*\*\*' 0.001 '\*\*' 0.01 '\*' 0.05 '.' 0.1 ' ' 1 |
Hi,
when using the options
add.significance.stars
in pander() mehod the output is not well interpreted by pandoc that recognizes the asterisks as markup code for bold and italic fonts.Here's a minimal example:
The last string ("Signif. codes") does not render well in PDF output as you can see here:
![image](https://cloud.githubusercontent.com/assets/12545394/11565004/54b20334-99dc-11e5-9b31-0f9ec9cad273.png)
If i manually copy&paste pander() output and escape the asterisks like this:
then it renders well from md to pdf with pandoc.
Thanks
The text was updated successfully, but these errors were encountered: