You can change the default data frame print method in the YAML to one of the following options. “Table” output with fixed-width fonts like this never inspired anyone to take action. As Yihui Xie puts it, “printing objects in R code chunks basically emulates the R console.” This default output leaves much to be desired. If you are using RMarkdown (and, if you’re not, you should really consider it), any data frame that you call in a code chunk is displayed using the data frame printing method set in your YAML. Customizing Default Table Output in RMarkdown But what about tables? Fortunately for R users, there are many ways to create beautiful tables that effectively communicate your results. Data visualization in R is a huge topic (and one covered expertly in Kieran Healy’s Data Visualization: A Practical Introduction and Claus Wilke’s Fundamentals of Data Visualization). Along with narrative text, these make up the bulk of content used to communicate results.Ĭlear writing is a topic for another venue. In most reports, communication of results happens through a combination of data visualization and tables. It doesn’t matter how good your data analysis is if you don’t effectively communicate your results. We need to organize and document the package, then make it available on GitHub. In this assignment, we need to create an R package based on some example functions provided by the instructors. Updated Mawith info on the reactablefmtr and gtextras packages. 1 Im working on the final assignment of the course Building R Packages.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |