<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>mrkn</author_name>
  <author_url>https://blog.hatena.ne.jp/mrkn/</author_url>
  <blog_title>ドレッシングのような</blog_title>
  <blog_url>https://mrkn.hatenadiary.org/</blog_url>
  <categories>
    <anon>GNU R</anon>
  </categories>
  <description>GNU R で、image() を使って3次元データをカラーマップとして可視化するとき、その横に色と値の対応を示したいですよね。R はそのような機能を用意してくれているのかな？ 少し探したけど発見できなかったので、以下のようにしています。もっと良い方法があったら教えてください。 # plotting colormap xs &lt;- 1:100 ys &lt;- 1:100 zs &lt;- sapply(xs, function (x) { sapply(ys, function (y) { sin(x/(2*pi)) + cos(y/(2*pi)) }) }) z.range &lt;- c(min(zs), …</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fmrkn.hatenadiary.org%2Fentry%2F20090213%2Fcolormap_with_legend_by_gnu_r&quot; title=&quot;R の image() で出力したカラーマップの横に反例として値と色の対応を示したい - ドレッシングのような&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>http://img.skitch.com/20090213-me91mqn76e4e85mm2tr4c8ti4p.preview.jpg</image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2009-02-13 00:00:00</published>
  <title>R の image() で出力したカラーマップの横に反例として値と色の対応を示したい</title>
  <type>rich</type>
  <url>https://mrkn.hatenadiary.org/entry/20090213/colormap_with_legend_by_gnu_r</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
