BDSI R Training I
Biological Data Science Institute
2nd November 2023
[1] 3
c()
:str()
to see the internal structure of an object in R.data.frame
is a special type of a named list where each element of the vector is the same length.[1] 3.3 1.1
[1] 2.2 2.2
[1] 2.2 2.2
TRUE
.I am looking to adjust the size of two separate ggplots within the same R chunk in Rmarkdown. These plots must be different when outputted as a pdf, so defining the dimensions at the beginning of the chunk doesn’t work. Does anyone have any ideas? My code is below.
I am looking to adjust the size of two separate ggplots within the same R chunk in Rmarkdown. These plots must be different when outputted as a pdf, so defining the dimensions at the beginning of the chunk doesn’t work. Does anyone have any ideas? My code is below.
I am looking to adjust the size of two separate ggplots within the same R chunk in Rmarkdown. These plots must be different when outputted as a pdf, so defining the dimensions at the beginning of the chunk doesn’t work. Does anyone have any ideas? My code is below.
I am looking to adjust the size of two separate ggplots within the same R chunk in Rmarkdown. These plots must be different when outputted as a pdf, so defining the dimensions at the beginning of the chunk doesn’t work. Does anyone have any ideas? My code is below.
If the question is asked in an public forum or similar:
If the problem is computer system related…
If the problem is based on data …
You can easily get the session information in R using sessionInfo()
.
Scroll to see the packages used to make these slides.
R version 4.3.1 (2023-06-16)
Platform: aarch64-apple-darwin20 (64-bit)
Running under: macOS Sonoma 14.0
Matrix products: default
BLAS: /Library/Frameworks/R.framework/Versions/4.3-arm64/Resources/lib/libRblas.0.dylib
LAPACK: /Library/Frameworks/R.framework/Versions/4.3-arm64/Resources/lib/libRlapack.dylib; LAPACK version 3.11.0
locale:
[1] en_US.UTF-8/en_US.UTF-8/en_US.UTF-8/C/en_US.UTF-8/en_US.UTF-8
time zone: Australia/Sydney
tzcode source: internal
attached base packages:
[1] stats graphics grDevices utils datasets methods base
loaded via a namespace (and not attached):
[1] compiler_4.3.1 fastmap_1.1.1 cli_3.6.1 tools_4.3.1
[5] htmltools_0.5.6 rstudioapi_0.15.0 yaml_2.3.7 rmarkdown_2.25
[9] knitr_1.43 jsonlite_1.8.7 xfun_0.40 digest_0.6.33
[13] rlang_1.1.1 evaluate_0.21
reprex
LIVE DEMOanu-bdsi.github.io/training-R1/