

RMARKDOWN MATRIX HOW TO
The following examples show how to use each method with the following data frame in R: #create data frameĭf <- data. Method 4: The ggcorrplot Function (For visualizing correlation matrix) library(ggcorrplot) Method 3: The corrplot Function (For visualizing correlation matrix) library(corrplot) Method 2: The rcorr Function (For getting p-values of correlation coefficients) library(Hmisc)

Method 1: The cor Function (For getting simple matrix of correlation coefficients) cor(df) There are four common ways to create a correlation matrix in R: It offers a quick way to understand the strength of the linear relationships that exist between variables in a dataset. If possible I would like to identify all possible points of difference in the two TeX installations.A correlation matrix is a square table that shows the correlation coefficients between variables in a dataset. This is just a test file to demonstrate the problem with `xcolor`. This code should be saved as an *.Rmd file, and will require the bookdown package to be pre-installed.
RMARKDOWN MATRIX FULL
I have also copied the full RStudio library section across the two machines, which effectively rules the RStudio environment out as a source of the problem.Ī basic example of a slide deck that fails on one but not the other is as follows. Primary author of pdfTeX: Han The Thanh (pdfTeX) et al.Ĭompiled with libpng 1.6.34 using libpng 1.6.34Ĭompiled with zlib 1.2.11 using zlib 1.2.11 Redistribution of this software isĬovered by the terms of both the pdfTeX copyright andįor more information about these matters, see the file While the latex -v info is also identical and reads as follows: pdfTeX 3.14159265-2.6-1.40.19 (TeX Live 2018)Ĭopyright 2018 Han The Thanh (pdfTeX) et al. Loaded via a namespace (and not attached):

stats graphics grDevices utils datasets methods base LAPACK: /Library/Frameworks/R.framework/Versions/3.5/Resources/lib/libRlapack.dylib Platform: x86_64-apple-darwin15.6.0 (64-bit)īLAS: /System/Library/Frameworks/amework/Versions/A/Frameworks/amework/Versions/A/libBLAS.dylib The RStudio session info is as follows: R version 3.5.1 () The version info acquired from $ latex -v is also identical. The session info ( sessionInfo()) from RStudio is identical for both machines. Even if it was possible, this would not explain why the document is compiling perfectly on one machine, but not on the other. Unfortunately, this is not possible when working from markdown. This error has been reported elsewhere, with the primary solution to include the following line in a LaTeX document: \documentclass ! Package xcolor Error: Undefined color `Maroon'. One machine runs perfectly, but the other generates a conflict with the xcolor package. I am writing in RMarkdown, using knitr to compile beamer slides. Both macs are running identical operating systems.
RMARKDOWN MATRIX PRO
I work across two separate Mac computers, a Macbook Pro at work, and a Macbook Air at home.
