![]() ![]() The bottom line is, Word documents will be less polished than PDF. To place tables and figures in your text instead, set the figsintext parameter in the YAML header to yes or true, as I have done in this document.Īgain, this is not the case in Word documents due to limited pandoc functionality. If you would like to add mathematical symbols in any part of the table use $ (not $$, which is used in-text) to denote the beginning and end of the mathematical expression.Īs required by the APA guidelines, tables are deferred to the final pages of the manuscript when creating a PDF. When you pass backslashes as character strings you need to escape the backslash with one additional backslash because R uses backslashes to denote special characters, such as \t for tab or \n for newline. If you set escape = FALSE you need to manually escape symbols that would otherwise be interpreted as LaTeX code, such as underscores (see note in the example below). Otherwise, elements of the LaTeX syntax (such as backslashes) will be printed as is. To use LaTeX code inside a table you have to set escape = FALSE. In interactive R session (unless a document is being rendered) the output defaults to LaTeX. When using apa_table(), the type of the output (LaTeX or MS Word) is determined automatically by the rendered document type. If you pass a list to apa_table(), all list elements are merged by columns into a single ame and the names of list elements are added to the table according to the setting of merge_method. The function performs no calculations but simply prints any ame it is given. Unfortunately, in papaja table formatting is somewhat limited for Word documents due to missing functionality in pandoc (e.g., it is not possible to have cells or headers span across multiple columns). This table was created with apa_table().Īpa_table() creates tables that are inspired by the examples presented in the APA manual and that adhere to its guidelines. These arguments take named lists of arguments that are passed on to the respective functions from the graphics package (which comprises R’s standard plotting functions), such as points(), arrows(), and legend().Ĭonsider the following code and the resulting Figure 4.3 for a customized version of the previous beeswarm plot. The visual elements of the plots can be customized by passing options to the arguments args_points, args_error_bars, args_legend, and so on. If the data encompass multiple observations per participant-factor-level-combination, these observations are aggregated.īy default, the condition means are computed but you can specify other aggregation functions via the fun_aggregate argument. However, the arguments tendency and dispersion can be used to overwrite these defaults and plot other statistics.įor example, to plot within-subjects rather than between-subjects confidence intervals you can set dispersion = within_subjects_conf_int. Mesures of central tendency and dispersion default to the mean and 95% confidence intervals.
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |