R关联绘制数字而不是文本

时间:2017-06-03 09:49:09

标签: r correlation r-corrplot

当我绘制相关性时,不显示列名,而是显示数字。

为什么会发生这种情况以及如何纠正?

以下是代码

#!/bin/bash
# make this file executable with chmod +x trun
# create a unique file in /tmp
trun_cmd=`mktemp`
# make it cd back to where we are now
echo "cd `pwd`" >$trun_cmd
# make the title bar contain the command being run
echo 'echo -n -e "\033]0;'$*'\007"' >>$trun_cmd
# clear window
echo clear >>$trun_cmd
# the shell command to execute
echo $* >>$trun_cmd
# make the command remove itself
echo rm $trun_cmd >>$trun_cmd
# make the file executable
chmod +x $trun_cmd

# open it in Terminal to run it in a new Terminal window
open -b com.apple.terminal $trun_cmd

输出是:

enter image description here

1 个答案:

答案 0 :(得分:0)

我看到了corrplot和GGally包的一些问题。如果在GGally包/库之前调用相关矩阵,则矩阵包含列名(在文本中)。

如果在GGally包/库之后调用相关矩阵,则矩阵包含列名的索引号。该图也会在索引编号之前附上...