<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>cross_hyou</author_name>
  <author_url>https://blog.hatena.ne.jp/cross_hyou/</author_url>
  <blog_title>Rで何かをしたり、読書をするブログ</blog_title>
  <blog_url>https://www.crosshyou.info/</blog_url>
  <categories>
    <anon>データ分析</anon>
  </categories>
  <description>www.crosshyou.info の続きです。 今回はデータを可視化して、どの都道府県が図書館が多いのか少ないのか、データの分布形状はどうなっているのかを見てみます。 まずは、library:図書館数です。ggplot2のgeom_bar関数を使います。 mutate(pref = reorder(pref, library))でprefをlibraryの大きい順に並び替えてから、ggplotとgeom_bar関数で棒グラフにしています。corrd_flip関数で縦軸と横軸を入れ替えています。図書館数の多い上位は、東京都、埼玉県、大阪府です。 図書館数の少ない下位は、和歌山県、佐賀県、徳島…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fwww.crosshyou.info%2Fentry%2F2021%2F01%2F17%2F201321&quot; title=&quot;都道府県別の図書館数などのデータの分析２ - R言語で各データを可視化する。ggplot2のgeom_bar関数とgeom_hist関数。 - Rで何かをしたり、読書をするブログ&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/c/cross_hyou/20210117/20210117195440.png</image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2021-01-17 20:13:21</published>
  <title>都道府県別の図書館数などのデータの分析２ - R言語で各データを可視化する。ggplot2のgeom_bar関数とgeom_hist関数。</title>
  <type>rich</type>
  <url>https://www.crosshyou.info/entry/2021/01/17/201321</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
