<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>uncorrelated</author_name>
  <author_url>https://blog.hatena.ne.jp/uncorrelated/</author_url>
  <blog_title> 餡子付゛録゛</blog_title>
  <blog_url>https://uncorrelated.hatenablog.com/</blog_url>
  <categories>
    <anon>R言語</anon>
  </categories>
  <description>Rのgraphics::heatmapには予想し難い挙動があります。ヘルプや解説ページでも言及されていないようなので指摘しておきたいと思います。観測数を集計した、行で標本、列で属性を表す行列を用意します。 M &lt;- matrix(c(1,6,4,2,5,8,1,6,4), 3) rownames(M) &lt;- sprintf(&quot;sample #%d&quot;, 1:3) colnames(M) &lt;- sprintf(&quot;factor %s&quot;, letters[1:3]) 頻度の集計なのでヒートマップがプロットできます。やってみましょう。 heatmap(M, Colv=NA, margin = c(5, …</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Funcorrelated.hatenablog.com%2Fentry%2F2025%2F05%2F08%2F082749&quot; title=&quot;Rのgraphics::heatmapのクラスター分析（樹形図）には罠がある -  餡子付゛録゛&quot; class=&quot;embed-card embed-blogcard&quot; scrolling=&quot;no&quot; frameborder=&quot;0&quot; style=&quot;display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;&quot;&gt;&lt;/iframe&gt;</html>
  <image_url>https://cdn-ak.f.st-hatena.com/images/fotolife/u/uncorrelated/20250508/20250508082513.png</image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2025-05-08 08:27:49</published>
  <title>Rのgraphics::heatmapのクラスター分析（樹形図）には罠がある</title>
  <type>rich</type>
  <url>https://uncorrelated.hatenablog.com/entry/2025/05/08/082749</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
