简体   繁体   中英

R: How to use monospaced (fixed width) font in grid.table?

I want to display my grid.table in monospaced (fixed width) fonts.

How shall I specify this? Is it any particular fonts to be used, or any other arguments?

Thank you

grid.table(head(iris), theme=ttheme_default(base_family="monospace"))

虹膜

This will use your system monospace font, which, in my case, is Cousine . Feel free to change it as you wish.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM