交互式热图/矩阵可视化

发布于 2024-12-21 05:46:28 字数 782 浏览 4 评论 0原文

我想在网页上显示我在 R 中生成的热图(矩阵)。 我的矩阵看起来像这样,但在我的例子中,大小是 300x300。

http://2.bp.blogspot.com/-38wWn7KD6v0/TgTJskG1ujI/AAAAAAAAC5g/0k33b0L5fL8/s1600/heatmap.png

基本上我正在寻找一个交互式集群,它看起来像这样:

http://online.wsj.com/article/SB125993225142676615.html#articleTabs%3Dinteractive< /一>

<一href="http://mbostock.github.com/protovis/ex/matrix.html" rel="nofollow noreferrer">http://mbostock.github.com/protovis/ex/matrix.html

我希望能够点击一个分支,然后突出显示所选的组/文本,并淡出矩阵的其余部分。

我环顾四周,找不到太多东西。我什至不知道我应该使用什么语言? JSON、Flash、HTML5、javascript、谷歌图表?

如有任何意见和建议,我们将不胜感激。

谢谢。

I would like to display on a webpage a heatmap (matrix) that I generate in R.
The matrix I have looks like this, but in my case the size is 300x300.

http://2.bp.blogspot.com/-38wWn7KD6v0/TgTJskG1ujI/AAAAAAAAC5g/0k33b0L5fL8/s1600/heatmap.png

Basically I am looking for an interactive clustering, which would look like this :

http://online.wsj.com/article/SB125993225142676615.html#articleTabs%3Dinteractive

http://mbostock.github.com/protovis/ex/matrix.html

I would like to be able to clic on a branch which would then highlight the selected group/text, and fade out the rest of the matrix.

I have had a look around and cannot find much. I don't even know what language I should use for this ? JSON, Flash, HTML5, javascript, google charts ?

Any comments and advices would be extremely appreciated here.

Thanks.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(7

彡翼 2024-12-28 05:46:29

我认为 InCHlib - 交互式集群热图库可能是解决方案。

可从 http://openscreen.cz/software/inchlib 获取。

I think that InCHlib - Interactive Cluster Heatmap library could be the solution.

Available from http://openscreen.cz/software/inchlib.

寄离 2024-12-28 05:46:29

Google Visualization 提供了此热图选项:

还有一个项目将其改编为更高级的用途,实际上包括鼠标悬停和工具提示以及线条放大:
http://code.google.com/p/visquick/

您可能还想看一下 jQuery Flot,但请注意,《华尔街日报》使用一家名为 Tableau 的超级昂贵公司进行数据可视化,您不太可能在开源或免费使用的软件包中找到这种级别的可视化效果。

Google Visualization provides this heatmap option:
http://informatics.systemsbiology.net/visualizations/heatmap/bioheatmap.html

There's also this project that adapted it for more advanced uses and actually includes mouse-overs and tool-tips, as well as line magnification:
http://code.google.com/p/visquick/

You may also want to take a look at jQuery Flot, but be warned that WSJ uses a super expensive company called Tableau for data visualization and you are unlikely to find that level of visualization eye candy in an open source or free to use package.

流殇 2024-12-28 05:46:29

不幸的是,我也有同样的要求。为分层聚类结果创建聚类图(热图+树状图)。

对此没有直接的解决方案。我使用 ProtovisGWT (Choosel) 分别创建树状图和热图,然后将它们组合起来。

如果你只想要 js 库,你可以使用 protovis 或 d3.js 来实现这一点。

Unfortunately, I had the same requirement. To create a Clustergram (Heatmap + Dendrogram) for a hierarchical clustering results.

There is no direct solution for this. I used ProtovisGWT (Choosel) to create dendrogram and heatmap seperatley and later combnied them.

If you just want js library you can use just protovis or d3.js to achieve this.

锦欢 2024-12-28 05:46:29

我建议使用 JavaScript 来完成此任务。在 R 中将热图保存为 SVG

svg("mymap.svg")
heatmap(...)
dev.off()

然后将其作为对象嵌入到 HTML 文档中

    <object id="test-svg" width="800" height="600" 
type="image/svg+xml" data="test.svg"></object>

现在,您可以使用 JavaScript 或 ECMAScript 进行各种操作。我建议阅读有关此主题的各种在线教程之一。例如,您可以从以下内容开始: http://www .petercollingridge.co.uk/data-visualization/using-javascript-control-svg

I would recommend using JavaScript for this task. Save your heatmap as SVG in R

svg("mymap.svg")
heatmap(...)
dev.off()

And then embed it into an HTML document as object

    <object id="test-svg" width="800" height="600" 
type="image/svg+xml" data="test.svg"></object>

Now, you can use JavaScript or ECMAScript to do all kinds of manipulations. I recommend to read one of the various online tutorials on this topic. E.g., you could get started with this one: http://www.petercollingridge.co.uk/data-visualisation/using-javascript-control-svg

呆橘 2024-12-28 05:46:29

D3.js 的 Treemap 很好地解决了这个问题。请参阅此处

http://mbostock.github.io/d3/talk/20111018/treemap .html

Treemap of D3.js solves this beautifully. See here

http://mbostock.github.io/d3/talk/20111018/treemap.html

纵山崖 2024-12-28 05:46:29

您可以尝试 http://amp.pharm.mssm.edu/clustergrammer/ 。它不是用 R 编写的,但您可以通过上传制表符分隔格式的矩阵文件来制作交互式聚类图,并且您将返回一个交互式(可重新排序、可搜索、可过滤等)和可共享的基于 Web 的可视化

You could try http://amp.pharm.mssm.edu/clustergrammer/ . It is not written in R, but you can make an interactive clustergram by uploading a matrix file in tab-separated format and you will be returned an interactive (reorderable, searchable, filterable, etc) and shareable web-based visualization

梅窗月明清似水 2024-12-28 05:46:29

D3heatmap 基于 heatmap在 R 中提供带有树状图的交互式热图heatmap.2 接口。它包括单行和列选择,但目前不允许选择树状图分支。

D3heatmap provides interactive heatmaps with dendrograms in R based on the heatmap and heatmap.2 interfaces. It includes single row and column selection but does not currently allow selection of dendrogram branches.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文