LoginSignup
3
3

More than 5 years have passed since last update.

Rで可視化。Pixivタグ検索結果からタグの関係マップを出力

Last updated at Posted at 2014-03-29

出力イメージ(タグの関係マップ)

Rbiplot.png

概要

タグの関係性を描いた二次元マップを見て、自分も作りたくなった。
対応分析の代表的な可視化手法であるバイプロットという手法を使えば良いらしいので、使った。

処理

01.Pixivの検索結果をCSV形式で取得する。

-> Pixiv検索結果をCSVダウンロードするHTMLファイルを用意した

02.Pixivの検索結果から1タグ1カラムの表データを作る。(Ruby)

-> Rubyで前処理。Pixivのタグ検索結果から1タグ1カラムの表データを作る

03.分割表に対し対応分析を実施し、その結果をバイプロットで可視化する。(R)

x <- read.csv("OUTPUT.csv")
biplot(corresp(x,nf=2))
3
3
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
3
3