It is used to investigate the dependence between multiple variables at the same time and to highlight the most correlated variables in a data table.
Du kan inte välja fler än 25 ämnen Ämnen måste starta med en bokstav eller siffra, kan innehålla bindestreck ('-') och vara max 35 tecken långa.

152 lines
3.3KB

  1. {
  2. "fields": [
  3. {
  4. "key": "corr_vars",
  5. "dataIndex": "corr_vars",
  6. "valueType": "select",
  7. "title": "Correlation Variables",
  8. "tooltip": "Which variables do you want to analyze?",
  9. "valueEnum": "{{{tojson columns }}}",
  10. "fieldProps": {
  11. "mode": "multiple"
  12. },
  13. "formItemProps": {
  14. "rules": [
  15. {
  16. "required": true,
  17. "message": "Please select several variables."
  18. }
  19. ]
  20. }
  21. },
  22. {
  23. "key": "method",
  24. "dataIndex": "method",
  25. "valueType": "select",
  26. "title": "Method",
  27. "tooltip": "The visualization method of correlation matrix to be used. Allowed values are square (default), circle.",
  28. "valueEnum": {
  29. "square": {
  30. "text": "Square"
  31. },
  32. "circle": {
  33. "text": "Circle"
  34. }
  35. },
  36. "formItemProps": {
  37. "initialValue": "square"
  38. }
  39. },
  40. {
  41. "key": "corr_type",
  42. "dataIndex": "corr_type",
  43. "valueType": "select",
  44. "title": "Correlation Type",
  45. "tooltip": "full (default), lower or upper display.",
  46. "valueEnum": {
  47. "full": {
  48. "text": "Full"
  49. },
  50. "lower": {
  51. "text": "Lower"
  52. },
  53. "upper": {
  54. "text": "Upper"
  55. }
  56. },
  57. "formItemProps": {
  58. "initialValue": "full"
  59. }
  60. },
  61. {
  62. "key": "hc_method",
  63. "dataIndex": "hc_method",
  64. "valueType": "select",
  65. "title": "Cluster Method",
  66. "tooltip": "The agglomeration method to be used in hclust (see ?hclust).",
  67. "valueEnum": {
  68. "ward.D": {
  69. "text": "ward.D"
  70. },
  71. "ward.D2": {
  72. "text": "ward.D2"
  73. },
  74. "single": {
  75. "text": "single"
  76. },
  77. "complete": {
  78. "text": "complete"
  79. },
  80. "average": {
  81. "text": "average"
  82. },
  83. "mcquitty": {
  84. "text": "mcquitty"
  85. },
  86. "median": {
  87. "text": "median"
  88. },
  89. "centroid": {
  90. "text": "centroid"
  91. }
  92. },
  93. "formItemProps": {
  94. "initialValue": "complete"
  95. }
  96. },
  97. {
  98. "key": "hc_order",
  99. "dataIndex": "hc_order",
  100. "valueType": "switch",
  101. "title": "Cluster Ordered",
  102. "tooltip": "Logical value. If TRUE, correlation matrix will be hc.ordered using hclust function.",
  103. "formItemProps": {
  104. "initialValue": true
  105. }
  106. },
  107. {
  108. "key": "sig_level",
  109. "dataIndex": "sig_level",
  110. "valueType": "switch",
  111. "title": "Cluster Ordered",
  112. "tooltip": "Significant level, greater than 0 and less than 1.",
  113. "fieldProps": {
  114. "step": 0.01
  115. },
  116. "formItemProps": {
  117. "initialValue": 0.05
  118. }
  119. }
  120. ],
  121. "dataKey": {
  122. "annoData": "Anno",
  123. "data": "Data"
  124. },
  125. "examples": [
  126. {
  127. "title": "Example 1",
  128. "key": "example-1",
  129. "datafile": "",
  130. "arguments": {
  131. "corr_vars": [
  132. "mpg",
  133. "cyl",
  134. "disp",
  135. "hp",
  136. "drat",
  137. "wt",
  138. "qsec",
  139. "vs",
  140. "am",
  141. "gear",
  142. "carb"
  143. ],
  144. "sig_level": 0.05,
  145. "hc_order": true,
  146. "hc_method": "complete",
  147. "corr_type": "full",
  148. "method": "square"
  149. }
  150. }
  151. ]
  152. }