用R画heatmap – 又一种方法

今天学会了用heatmap()函数画heatmap。上一篇用的是ggplot。

heatmap函数不仅仅能生成heatmap,主要是还会对输入数据做聚类,如图:

test2

这张图聚集出了大概有4-5个类别。

— END. —

Advertisements
相册 | 此条目发表在R分类目录,贴了, 标签。将固定链接加入收藏夹。

发表评论

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / 更改 )

Twitter picture

You are commenting using your Twitter account. Log Out / 更改 )

Facebook photo

You are commenting using your Facebook account. Log Out / 更改 )

Google+ photo

You are commenting using your Google+ account. Log Out / 更改 )

Connecting to %s