[英]Correlation plot (corrplot) squashed correlation values
I am trying to plot an intraday correlation matrix but when I use corrplot
my correlation values are squashed and not clearly eligible. 我试图绘制一个日内相关矩阵,但是当我使用corrplot
我的相关值被压缩并且不明确。
I have tried messing with the outer and inner margins but this is not working either. 我试图弄乱外部和内部边距,但这也不起作用。 Can anyone make a suggestion as to how I can solve this problem? 谁能建议我如何解决这个问题?
corrplot(DO0182U09A3_24hrCor,
method = "number",
type = "lower",
mfrow=c(1,1),
oma=c(0.1,0.1,0.1,0.1),
mar=c(0,0,1,0),
title = "Correlation plot between days for DO0192U09A3")
You could try @drsimonj package corrr
which has functions for nice printing: 您可以尝试@drsimonj软件包corrr
,该软件包具有用于打印的功能:
> mtcars %>% correlate() %>% fashion()
rowname mpg cyl disp hp drat wt qsec vs am gear carb
1 mpg -.85 -.85 -.78 .68 -.87 .42 .66 .60 .48 -.55
2 cyl -.85 .90 .83 -.70 .78 -.59 -.81 -.52 -.49 .53
3 disp -.85 .90 .79 -.71 .89 -.43 -.71 -.59 -.56 .39
4 hp -.78 .83 .79 -.45 .66 -.71 -.72 -.24 -.13 .75
5 drat .68 -.70 -.71 -.45 -.71 .09 .44 .71 .70 -.09
6 wt -.87 .78 .89 .66 -.71 -.17 -.55 -.69 -.58 .43
7 qsec .42 -.59 -.43 -.71 .09 -.17 .74 -.23 -.21 -.66
8 vs .66 -.81 -.71 -.72 .44 -.55 .74 .17 .21 -.57
9 am .60 -.52 -.59 -.24 .71 -.69 -.23 .17 .79 .06
10 gear .48 -.49 -.56 -.13 .70 -.58 -.21 .21 .79 .27
11 carb -.55 .53 .39 .75 -.09 .43 -.66 -.57 .06 .27
As well as ggplot2
capabilities for printing "correlation data frames": 以及用于打印“相关数据帧”的ggplot2
功能:
mtcars %>% correlate() %>% shave() %>% rplot(print_cor=TRUE)
Alternatively you can print correlation graph: 或者,您可以打印相关图:
mtcars %>% correlate() %>% network_plot()
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.