Replicate R cor() function in Tableau

南笙酒味 提交于 2019-12-24 00:23:49

问题


Why is there no tutorial online about replicating R's basic cor() function in tableau. All I can find are tutorials to visualize correlations of values by dimension. I just want to see how all variables in my data are correlated to each other.

And thanks for the support @user1036719


回答1:


All,

I have figured out the simplest way to solve my own problem. With the introduction of Tableau 9.0, you can load .RData files directly into Tableau. Here is how you go about it:

1) Simply save() your correlation matrix as an .RData file. 2) Connect Tableau to the .RData file 3) Put "Measure Names" in the Columns field & "Rownames" in the Rows field. 4) Set Marks from "Automatic" to "Square" 5) Drag "Measure Values" over the "Color" Marks category

Voila! You're done. With the new R integration this is so much simpler than any solution I have found online.



来源:https://stackoverflow.com/questions/29638660/replicate-r-cor-function-in-tableau

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!