<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>syou6162</author_name>
  <author_url>https://blog.hatena.ne.jp/syou6162/</author_url>
  <blog_title>yasuhisa's blog</blog_title>
  <blog_url>https://www.yasuhisay.info/</blog_url>
  <categories>
    <anon>R</anon>
  </categories>
  <description>実は同じことを去年もやっているんだけど、よく分からないコードで、しかもちゃんとしてないということで書きなおしてみた。 cross.table &lt;- function(x,y){ t &lt;- table(x,y) #回答の長さとかによって、marは変更して par(mar=c(6,6,6,3)) col &lt;- 2:(length(levels(y))+1) barplot(t(t/apply(t,1,sum)) * 100, col=col,horiz=T,axes=F,las=2) par(xpd=TRUE) title(main=paste(deparse(substitute(x)),&quot;と&quot;…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fwww.yasuhisay.info%2Fentry%2F20081021%2F1224589302&quot; title=&quot;Rでクロス表を書く - yasuhisa&amp;#39;s blog&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/s/syou6162/20161113/20161113003333.png</image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2008-10-21 20:41:42</published>
  <title>Rでクロス表を書く</title>
  <type>rich</type>
  <url>https://www.yasuhisay.info/entry/20081021/1224589302</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
