THe rosetta package contains an argument to facilitate the interpretation of factor patterns by colouring and sizing the factor loadings using the kableExtra package.

This is illustrated here using the bfi dataset that was originally included in the psych package, since then moved to the psychTools package, but is also included in the ufs package.

data("bfi", package="ufs");
items <- names(bfi)[1:25];

Note that calling rosetta::factorAnalysis() in an R Markdown chunk will automatically use the Rmdpartial.

rosetta::factorAnalysis(
  data = bfi,
  items = items,
  nfactors = 5,
  colorLoadings = TRUE
);

Exploratory Factor Analysis (EFA)

Input parameters
Extraction method: Minimum Residuals
Rotation: Oblimin rotation
Sample size: 2436
Factor loadings
Factor 1 Factor 2 Factor 3 Factor 4 Factor 5 Uniqueness
A1 <span style=" font-weight: bold; color: rgba(75, 194, 108, 1) !important;font-size: 13px;" >0.2</span> <span style=" font-weight: bold; color: rgba(86, 198, 103, 1) !important;font-size: 13px;" >-0.18</span> <span style=" font-weight: bold; color: rgba(147, 215, 65, 1) !important;font-size: 12px;" >0.07</span> <span style=" font-weight: bold; color: rgba(32, 146, 140, 1) !important;font-size: 14px;" >-0.44</span> <span style=" font-weight: bold; color: rgba(157, 217, 59, 1) !important;font-size: 12px;" >-0.05</span> 0.80
A2 <span style=" font-weight: bold; color: rgba(176, 221, 47, 1) !important;font-size: 12px;" >-0.02</span> <span style=" font-weight: bold; color: rgba(187, 223, 39, 1) !important;font-size: 12px;" >0</span> <span style=" font-weight: bold; color: rgba(145, 215, 66, 1) !important;font-size: 12px;" >0.07</span> <span style=" font-weight: bold; color: rgba(51, 98, 141, 1) !important;font-size: 15px;" >0.66</span> <span style=" font-weight: bold; color: rgba(173, 220, 48, 1) !important;font-size: 12px;" >0.03</span> 0.54
A3 <span style=" font-weight: bold; color: rgba(173, 220, 48, 1) !important;font-size: 12px;" >-0.02</span> <span style=" font-weight: bold; color: rgba(125, 210, 80, 1) !important;font-size: 12px;" >-0.1</span> <span style=" font-weight: bold; color: rgba(171, 220, 50, 1) !important;font-size: 12px;" >0.03</span> <span style=" font-weight: bold; color: rgba(54, 93, 141, 1) !important;font-size: 15px;" >0.68</span> <span style=" font-weight: bold; color: rgba(171, 220, 50, 1) !important;font-size: 12px;" >0.03</span> 0.46
A4 <span style=" font-weight: bold; color: rgba(155, 217, 60, 1) !important;font-size: 12px;" >-0.05</span> <span style=" font-weight: bold; color: rgba(138, 214, 71, 1) !important;font-size: 12px;" >-0.08</span> <span style=" font-weight: bold; color: rgba(83, 197, 105, 1) !important;font-size: 13px;" >0.19</span> <span style=" font-weight: bold; color: rgba(33, 144, 141, 1) !important;font-size: 14px;" >0.45</span> <span style=" font-weight: bold; color: rgba(98, 203, 95, 1) !important;font-size: 13px;" >-0.16</span> 0.70
A5 <span style=" font-weight: bold; color: rgba(118, 208, 84, 1) !important;font-size: 12px;" >-0.12</span> <span style=" font-weight: bold; color: rgba(64, 189, 114, 1) !important;font-size: 13px;" >-0.23</span> <span style=" font-weight: bold; color: rgba(187, 223, 39, 1) !important;font-size: 12px;" >0</span> <span style=" font-weight: bold; color: rgba(40, 124, 142, 1) !important;font-size: 14px;" >0.54</span> <span style=" font-weight: bold; color: rgba(157, 217, 59, 1) !important;font-size: 12px;" >0.05</span> 0.53
C1 <span style=" font-weight: bold; color: rgba(145, 215, 66, 1) !important;font-size: 12px;" >0.07</span> <span style=" font-weight: bold; color: rgba(169, 219, 51, 1) !important;font-size: 12px;" >0.03</span> <span style=" font-weight: bold; color: rgba(42, 120, 142, 1) !important;font-size: 14px;" >0.55</span> <span style=" font-weight: bold; color: rgba(185, 222, 40, 1) !important;font-size: 12px;" >0</span> <span style=" font-weight: bold; color: rgba(98, 203, 95, 1) !important;font-size: 13px;" >0.16</span> 0.65
C2 <span style=" font-weight: bold; color: rgba(100, 203, 95, 1) !important;font-size: 13px;" >0.15</span> <span style=" font-weight: bold; color: rgba(136, 213, 72, 1) !important;font-size: 12px;" >0.09</span> <span style=" font-weight: bold; color: rgba(53, 95, 141, 1) !important;font-size: 15px;" >0.67</span> <span style=" font-weight: bold; color: rgba(141, 214, 69, 1) !important;font-size: 12px;" >0.08</span> <span style=" font-weight: bold; color: rgba(161, 218, 56, 1) !important;font-size: 12px;" >0.04</span> 0.55
C3 <span style=" font-weight: bold; color: rgba(171, 220, 50, 1) !important;font-size: 12px;" >0.03</span> <span style=" font-weight: bold; color: rgba(155, 217, 60, 1) !important;font-size: 12px;" >0.06</span> <span style=" font-weight: bold; color: rgba(43, 116, 142, 1) !important;font-size: 14px;" >0.57</span> <span style=" font-weight: bold; color: rgba(136, 213, 72, 1) !important;font-size: 12px;" >0.09</span> <span style=" font-weight: bold; color: rgba(143, 214, 68, 1) !important;font-size: 12px;" >-0.07</span> 0.68
C4 <span style=" font-weight: bold; color: rgba(98, 203, 95, 1) !important;font-size: 13px;" >0.16</span> <span style=" font-weight: bold; color: rgba(185, 222, 40, 1) !important;font-size: 12px;" >0</span> <span style=" font-weight: bold; color: rgba(50, 101, 142, 1) !important;font-size: 15px;" >-0.64</span> <span style=" font-weight: bold; color: rgba(163, 218, 55, 1) !important;font-size: 12px;" >0.04</span> <span style=" font-weight: bold; color: rgba(163, 218, 55, 1) !important;font-size: 12px;" >-0.04</span> 0.52
C5 <span style=" font-weight: bold; color: rgba(88, 199, 101, 1) !important;font-size: 13px;" >0.18</span> <span style=" font-weight: bold; color: rgba(102, 203, 93, 1) !important;font-size: 13px;" >0.15</span> <span style=" font-weight: bold; color: rgba(42, 118, 142, 1) !important;font-size: 14px;" >-0.56</span> <span style=" font-weight: bold; color: rgba(176, 221, 47, 1) !important;font-size: 12px;" >0.02</span> <span style=" font-weight: bold; color: rgba(129, 211, 77, 1) !important;font-size: 12px;" >0.1</span> 0.56
E1 <span style=" font-weight: bold; color: rgba(149, 216, 64, 1) !important;font-size: 12px;" >-0.06</span> <span style=" font-weight: bold; color: rgba(41, 121, 142, 1) !important;font-size: 14px;" >0.55</span> <span style=" font-weight: bold; color: rgba(127, 211, 78, 1) !important;font-size: 12px;" >0.1</span> <span style=" font-weight: bold; color: rgba(132, 212, 75, 1) !important;font-size: 12px;" >-0.09</span> <span style=" font-weight: bold; color: rgba(129, 211, 77, 1) !important;font-size: 12px;" >-0.1</span> 0.65
E2 <span style=" font-weight: bold; color: rgba(132, 212, 75, 1) !important;font-size: 12px;" >0.09</span> <span style=" font-weight: bold; color: rgba(53, 96, 141, 1) !important;font-size: 15px;" >0.67</span> <span style=" font-weight: bold; color: rgba(173, 220, 48, 1) !important;font-size: 12px;" >-0.02</span> <span style=" font-weight: bold; color: rgba(149, 216, 64, 1) !important;font-size: 12px;" >-0.06</span> <span style=" font-weight: bold; color: rgba(147, 215, 65, 1) !important;font-size: 12px;" >-0.07</span> 0.45
E3 <span style=" font-weight: bold; color: rgba(136, 213, 72, 1) !important;font-size: 12px;" >0.09</span> <span style=" font-weight: bold; color: rgba(31, 152, 139, 1) !important;font-size: 14px;" >-0.41</span> <span style=" font-weight: bold; color: rgba(187, 223, 39, 1) !important;font-size: 12px;" >0</span> <span style=" font-weight: bold; color: rgba(59, 187, 117, 1) !important;font-size: 13px;" >0.24</span> <span style=" font-weight: bold; color: rgba(40, 174, 128, 1) !important;font-size: 13px;" >0.3</span> 0.56
E4 <span style=" font-weight: bold; color: rgba(187, 223, 39, 1) !important;font-size: 12px;" >0</span> <span style=" font-weight: bold; color: rgba(45, 113, 142, 1) !important;font-size: 14px;" >-0.59</span> <span style=" font-weight: bold; color: rgba(176, 221, 47, 1) !important;font-size: 12px;" >0.02</span> <span style=" font-weight: bold; color: rgba(41, 175, 127, 1) !important;font-size: 13px;" >0.3</span> <span style=" font-weight: bold; color: rgba(149, 216, 64, 1) !important;font-size: 12px;" >-0.06</span> 0.46
E5 <span style=" font-weight: bold; color: rgba(98, 203, 95, 1) !important;font-size: 13px;" >0.16</span> <span style=" font-weight: bold; color: rgba(31, 149, 139, 1) !important;font-size: 14px;" >-0.42</span> <span style=" font-weight: bold; color: rgba(51, 182, 122, 1) !important;font-size: 13px;" >0.27</span> <span style=" font-weight: bold; color: rgba(152, 216, 62, 1) !important;font-size: 12px;" >0.06</span> <span style=" font-weight: bold; color: rgba(70, 192, 111, 1) !important;font-size: 13px;" >0.22</span> 0.59
N1 <span style=" font-weight: bold; color: rgba(69, 53, 129, 1) !important;font-size: 15px;" >0.83</span> <span style=" font-weight: bold; color: rgba(125, 210, 80, 1) !important;font-size: 12px;" >-0.11</span> <span style=" font-weight: bold; color: rgba(187, 223, 39, 1) !important;font-size: 12px;" >0</span> <span style=" font-weight: bold; color: rgba(125, 210, 80, 1) !important;font-size: 12px;" >-0.11</span> <span style=" font-weight: bold; color: rgba(159, 218, 58, 1) !important;font-size: 12px;" >-0.05</span> 0.32
N2 <span style=" font-weight: bold; color: rgba(65, 67, 135, 1) !important;font-size: 15px;" >0.78</span> <span style=" font-weight: bold; color: rgba(169, 219, 51, 1) !important;font-size: 12px;" >-0.03</span> <span style=" font-weight: bold; color: rgba(180, 222, 43, 1) !important;font-size: 12px;" >0.01</span> <span style=" font-weight: bold; color: rgba(132, 212, 75, 1) !important;font-size: 12px;" >-0.09</span> <span style=" font-weight: bold; color: rgba(173, 220, 48, 1) !important;font-size: 12px;" >0.02</span> 0.39
N3 <span style=" font-weight: bold; color: rgba(57, 87, 140, 1) !important;font-size: 15px;" >0.7</span> <span style=" font-weight: bold; color: rgba(125, 210, 80, 1) !important;font-size: 12px;" >0.11</span> <span style=" font-weight: bold; color: rgba(169, 219, 51, 1) !important;font-size: 12px;" >-0.03</span> <span style=" font-weight: bold; color: rgba(138, 214, 71, 1) !important;font-size: 12px;" >0.08</span> <span style=" font-weight: bold; color: rgba(178, 221, 45, 1) !important;font-size: 12px;" >0.02</span> 0.46
N4 <span style=" font-weight: bold; color: rgba(35, 139, 141, 1) !important;font-size: 14px;" >0.47</span> <span style=" font-weight: bold; color: rgba(31, 153, 138, 1) !important;font-size: 14px;" >0.4</span> <span style=" font-weight: bold; color: rgba(108, 205, 90, 1) !important;font-size: 13px;" >-0.14</span> <span style=" font-weight: bold; color: rgba(127, 211, 78, 1) !important;font-size: 12px;" >0.1</span> <span style=" font-weight: bold; color: rgba(136, 213, 72, 1) !important;font-size: 12px;" >0.08</span> 0.49
N5 <span style=" font-weight: bold; color: rgba(35, 136, 142, 1) !important;font-size: 14px;" >0.48</span> <span style=" font-weight: bold; color: rgba(74, 193, 109, 1) !important;font-size: 13px;" >0.21</span> <span style=" font-weight: bold; color: rgba(185, 222, 40, 1) !important;font-size: 12px;" >0</span> <span style=" font-weight: bold; color: rgba(75, 194, 108, 1) !important;font-size: 13px;" >0.2</span> <span style=" font-weight: bold; color: rgba(98, 203, 95, 1) !important;font-size: 13px;" >-0.16</span> 0.65
O1 <span style=" font-weight: bold; color: rgba(185, 222, 40, 1) !important;font-size: 12px;" >0.01</span> <span style=" font-weight: bold; color: rgba(134, 213, 73, 1) !important;font-size: 12px;" >-0.09</span> <span style=" font-weight: bold; color: rgba(145, 215, 66, 1) !important;font-size: 12px;" >0.07</span> <span style=" font-weight: bold; color: rgba(180, 222, 43, 1) !important;font-size: 12px;" >0.01</span> <span style=" font-weight: bold; color: rgba(38, 129, 142, 1) !important;font-size: 14px;" >0.52</span> 0.68
O2 <span style=" font-weight: bold; color: rgba(83, 197, 105, 1) !important;font-size: 13px;" >0.19</span> <span style=" font-weight: bold; color: rgba(147, 215, 65, 1) !important;font-size: 12px;" >-0.07</span> <span style=" font-weight: bold; color: rgba(138, 214, 71, 1) !important;font-size: 12px;" >-0.08</span> <span style=" font-weight: bold; color: rgba(98, 203, 95, 1) !important;font-size: 13px;" >0.16</span> <span style=" font-weight: bold; color: rgba(35, 139, 141, 1) !important;font-size: 14px;" >-0.47</span> 0.73
O3 <span style=" font-weight: bold; color: rgba(169, 219, 51, 1) !important;font-size: 12px;" >0.03</span> <span style=" font-weight: bold; color: rgba(100, 203, 95, 1) !important;font-size: 13px;" >-0.15</span> <span style=" font-weight: bold; color: rgba(180, 222, 43, 1) !important;font-size: 12px;" >0.01</span> <span style=" font-weight: bold; color: rgba(141, 214, 69, 1) !important;font-size: 12px;" >0.08</span> <span style=" font-weight: bold; color: rgba(48, 106, 142, 1) !important;font-size: 14px;" >0.62</span> 0.53
O4 <span style=" font-weight: bold; color: rgba(123, 209, 81, 1) !important;font-size: 12px;" >0.11</span> <span style=" font-weight: bold; color: rgba(34, 168, 132, 1) !important;font-size: 13px;" >0.33</span> <span style=" font-weight: bold; color: rgba(169, 219, 51, 1) !important;font-size: 12px;" >-0.03</span> <span style=" font-weight: bold; color: rgba(90, 200, 100, 1) !important;font-size: 13px;" >0.17</span> <span style=" font-weight: bold; color: rgba(31, 161, 135, 1) !important;font-size: 13px;" >0.36</span> 0.75
O5 <span style=" font-weight: bold; color: rgba(114, 208, 86, 1) !important;font-size: 12px;" >0.12</span> <span style=" font-weight: bold; color: rgba(127, 211, 78, 1) !important;font-size: 12px;" >-0.1</span> <span style=" font-weight: bold; color: rgba(169, 219, 51, 1) !important;font-size: 12px;" >-0.03</span> <span style=" font-weight: bold; color: rgba(157, 217, 59, 1) !important;font-size: 12px;" >0.05</span> <span style=" font-weight: bold; color: rgba(41, 123, 142, 1) !important;font-size: 14px;" >-0.54</span> 0.70