<?xml version="1.0" encoding="UTF-8"?><!DOCTYPE rflow [
<!ENTITY lt "&#38;#60;">
<!ENTITY gt "&#62;">
<!ENTITY amp "&#38;#38;">
<!ENTITY apos "&#39;">
<!ENTITY quot "&#34;">
]><rflow><graph version="0.1"><node id="0" x="0.28380868" y="0.84599614"><command>par(cex = 0.9)</command><property></property><option type="com.ef_prime.rflow.node.base.SentenceNodeModel"></option></node><node id="1" x="0.45514286" y="0.68492335"><command>cutnum &lt;- 16</command><property></property><option type="com.ef_prime.rflow.node.base.SentenceNodeModel"></option></node><node id="2" title="Object情報の抽出" x="0.122737944" y="0.2594971"><command>
</command><property></property><option type="com.ef_prime.rflow.node.base.FreeNodeModel"></option></node><node id="3" x="0.44987372" y="0.11278152"><command>jpn &lt;- read.shape(&quot;C:/GISdata/japan_ver61.shp&quot;)</command><property></property><option type="com.ef_prime.rflow.node.base.SentenceNodeModel"></option></node><node id="4" x="0.29064855" y="0.2682927"><command>jpndata &lt;- jpn$att.data</command><property></property><option type="com.ef_prime.rflow.node.base.SentenceNodeModel"></option></node><node id="5" title="群馬県データ抽出" x="0.119913094" y="0.40772718"><command>
</command><property></property><option type="com.ef_prime.rflow.node.base.FreeNodeModel"></option></node><node id="6" x="0.293054" y="0.111914545"><command>library(maptools)</command><property><comment>ライブラリ宣言</comment></property><option type="com.ef_prime.rflow.node.base.SentenceNodeModel"></option></node><node id="7" x="0.73956096" y="0.41123462"><command>y &lt;- subset(jpnxy[, 2], jpndata$PREF == &quot;群馬県&quot;)</command><property></property><option type="com.ef_prime.rflow.node.base.SentenceNodeModel"></option></node><node id="8" x="0.6448493" y="0.84464717"><command>text(x, y, as.character(gunmadata$CITY1), cex = 0.7, pos = 1, offset = 0, col = &quot;black&quot;)</command><property></property><option type="com.ef_prime.rflow.node.base.SentenceNodeModel"></option></node><node id="9" x="0.72705334" y="0.67537236"><command>cols &lt;- rev(heat.colors(cutnum))</command><property></property><option type="com.ef_prime.rflow.node.base.SentenceNodeModel"></option></node><node id="10" x="0.4564304" y="0.55794287"><command>gunmadata &lt;- merge(aged, gunmadata, sort = F, by = &quot;JCODE&quot;)</command><property></property><option type="com.ef_prime.rflow.node.base.SentenceNodeModel"></option></node><node id="11" title="ShapeFile読み込み" x="0.119913094" y="0.11569178"><command>
</command><property></property><option type="com.ef_prime.rflow.node.base.FreeNodeModel"></option></node><node id="12" x="0.45279828" y="0.26980352"><command>jpnpoly &lt;- Map2poly(jpn, region.id = attr(jpn, &quot;region.id&quot;))</command><property></property><option type="com.ef_prime.rflow.node.base.SentenceNodeModel"></option></node><node id="13" x="0.45019573" y="0.4178718"><command>gunmapoly &lt;- subset(jpnpoly, jpndata$PREF == &quot;群馬県&quot;)</command><property></property><option type="com.ef_prime.rflow.node.base.SentenceNodeModel"></option></node><node id="14" x="0.4645172" y="0.84680545"><command>box()</command><property></property><option type="com.ef_prime.rflow.node.base.SentenceNodeModel"></option></node><node id="15" title="描画" x="0.119913094" y="0.83693075"><command>
</command><property></property><option type="com.ef_prime.rflow.node.base.FreeNodeModel"></option></node><node id="16" x="0.73627365" y="0.84173316"><command>legend(max(x) - 1.1 * (max(x) - min(x)), min(y) + 1.37 * (max(y) - min(y)), legend = names(rev(table(classes))),cex = 0.7, fill = cols2, text.col = &quot;black&quot;)</command><property></property><option type="com.ef_prime.rflow.node.base.SentenceNodeModel"></option></node><node id="17" x="0.29190692" y="0.4185733"><command>gunmadata &lt;- subset(jpndata, jpndata$PREF == &quot;群馬県&quot;)</command><property></property><option type="com.ef_prime.rflow.node.base.SentenceNodeModel"></option></node><node id="18" title="表示用データインポート" x="0.118500665" y="0.54489535"><command>
</command><property></property><option type="com.ef_prime.rflow.node.base.FreeNodeModel"></option></node><node id="19" x="0.37549832" y="0.84308225"><command>plot(gunmapoly, col = cols[classes], xlab = &quot;&quot;, ylab = &quot;&quot;, axes = F)</command><property></property><option type="com.ef_prime.rflow.node.base.SentenceNodeModel"></option></node><node id="20" x="0.87075573" y="0.67682916"><command>cols2 &lt;- heat.colors(cutnum)</command><property></property><option type="com.ef_prime.rflow.node.base.SentenceNodeModel"></option></node><node id="21" x="0.55609584" y="0.84464717"><command>text(x + 2e-04, y - 2e-04, as.character(gunmadata$CITY1), cex = 0.7, pos = 1, offset = 0, col = &quot;white&quot;)</command><property></property><option type="com.ef_prime.rflow.node.base.SentenceNodeModel"></option></node><node id="22" x="0.6007377" y="0.41269156"><command>x &lt;- subset(jpnxy[, 1], jpndata$PREF == &quot;群馬県&quot;)</command><property></property><option type="com.ef_prime.rflow.node.base.SentenceNodeModel"></option></node><node id="23" x="0.82754374" y="0.8439455"><command>title(&quot;群馬県市町村65歳以上高齢者比率（2006年）&quot;, &quot;出典/参考：中澤港「Rによる保健医療データ解析演習」, http://phi.ypu.jp/msb/&quot;)</command><property></property><option type="com.ef_prime.rflow.node.base.SentenceNodeModel"></option></node><node id="24" x="0.29111102" y="0.55315137"><command>aged &lt;- read.delim(&quot;C:/GISdata/agedprop.txt&quot;)</command><property></property><option type="com.ef_prime.rflow.node.base.SentenceNodeModel"></option></node><node id="25" title="凡例作成" x="0.119913094" y="0.69091296"><command>
</command><property></property><option type="com.ef_prime.rflow.node.base.FreeNodeModel"></option></node><node id="26" x="0.28903896" y="0.6885927"><command>DD &lt;- gunmadata$AP2006</command><property></property><option type="com.ef_prime.rflow.node.base.SentenceNodeModel"></option></node><node id="27" x="0.629646" y="0.26834667"><command>jpnxy &lt;- get.Pcent(jpn)</command><property></property><option type="com.ef_prime.rflow.node.base.SentenceNodeModel"></option></node><node id="28" x="0.59747565" y="0.681254"><command>classes &lt;- cut(DD, seq(min(DD), max(DD), length = cutnum + 1), include.lowest = T)</command><property></property><option type="com.ef_prime.rflow.node.base.SentenceNodeModel"></option></node><edge from="6" to="3"/><edge from="25" to="15"/><edge from="5" to="18"/><edge from="11" to="2"/><edge from="1" to="28"/><edge from="0" to="19"/><edge from="28" to="9"/><edge from="24" to="10"/><edge from="14" to="21"/><edge from="19" to="14"/><edge from="4" to="12"/><edge from="8" to="16"/><edge from="16" to="23"/><edge from="22" to="7"/><edge from="12" to="27"/><edge from="13" to="22"/><edge from="9" to="20"/><edge from="18" to="25"/><edge from="26" to="1"/><edge from="21" to="8"/><edge from="2" to="5"/><edge from="17" to="13"/></graph></rflow>