R for
Authoring!!

PSP Session #23…
…you just messing
with me now APA?!?

Problem-Solving Panel
(May 03, 2024)

  • Recap session #22       ↔︎️
  • Focal issue(s):
    • APA (aw c’mon now) 🥺
      • in-line statistics
      • Pull it all together
      • yabut
  • Shared problem-solving

Recap of Session #22:

APA Tables & Figures 🐯

## papaja 
## apaTables
## flextable

data(iris)
iris2 <- iris[c(1:6),]

papaja::apa_table(iris2,
      caption="six flowers")

## jtools
## papaja
## local template

library(ggplot2)

ggplot(iris, aes(Sepal.Length,
      Sepal.Width)) +
      geom_jitter() +
      jtools::theme_apa()
1
nothing different here from standard ggplot scatterplot

## jtools
## papaja
## local template

library(ggplot2)

ggplot(iris, aes(Sepal.Length, 
      Sepal.Width)) +
      geom_jitter() + 
      papaja::theme_apa()
1
papaja and jtools share the same function name, “theme_apa()”

Today:

📜 APA III: data reporting ✍️

Inline text:

Session Info (May 03, 2024) Rendering:

R version 4.2.2 (2022-10-31 ucrt)
Platform: x86_64-w64-mingw32/x64 (64-bit)
Running under: Windows 10 x64 (build 19045)

Matrix products: default

locale:
[1] LC_COLLATE=English_United States.utf8 
[2] LC_CTYPE=English_United States.utf8   
[3] LC_MONETARY=English_United States.utf8
[4] LC_NUMERIC=C                          
[5] LC_TIME=English_United States.utf8    

attached base packages:
[1] stats     graphics  grDevices utils     datasets  methods   base     

other attached packages:
[1] ggplot2_3.5.1

loaded via a namespace (and not attached):
 [1] Rcpp_1.0.10       lubridate_1.9.3   prettyunits_1.2.0 ps_1.7.5         
 [5] assertthat_0.2.1  digest_0.6.31     utf8_1.2.4        mime_0.12        
 [9] R6_2.5.1          evaluate_0.23     pillar_1.9.0      rlang_1.1.3      
[13] curl_5.2.1        fontawesome_0.5.2 rstudioapi_0.15.0 miniUI_0.1.1.1   
[17] callr_3.7.3       urlchecker_1.0.1  effectsize_0.8.3  rmarkdown_2.26   
[21] labeling_0.4.3    devtools_2.4.5    pander_0.6.5      stringr_1.5.1    
[25] htmlwidgets_1.6.4 munsell_0.5.1     shiny_1.7.4       compiler_4.2.2   
[29] httpuv_1.6.9      xfun_0.42         parameters_0.20.3 pkgconfig_2.0.3  
[33] pkgbuild_1.4.0    papaja_0.1.2      htmltools_0.5.7   insight_0.19.1   
[37] tidyselect_1.2.1  tibble_3.2.1      emo_0.0.0.9000    fansi_1.0.6      
[41] crayon_1.5.2      dplyr_1.1.4       withr_3.0.0       later_1.3.1      
[45] tinylabels_0.2.3  grid_4.2.2        jsonlite_1.8.8    xtable_1.8-4     
[49] gtable_0.3.5      lifecycle_1.0.4   bayestestR_0.13.1 magrittr_2.0.3   
[53] scales_1.3.0      datawizard_0.7.1  cli_3.6.0         stringi_1.7.12   
[57] cachem_1.0.8      farver_2.1.1      fs_1.6.2          promises_1.2.0.1 
[61] remotes_2.4.2     ellipsis_0.3.2    jtools_2.2.2      generics_0.1.3   
[65] vctrs_0.6.5       tools_4.2.2       glue_1.6.2        purrr_1.0.1      
[69] processx_3.8.1    pkgload_1.3.2     fastmap_1.1.1     yaml_2.3.8       
[73] timechange_0.3.0  colorspace_2.1-0  sessioninfo_1.2.2 memoise_2.0.1    
[77] knitr_1.45        profvis_0.3.7     usethis_2.2.3