タグ

関連タグで絞り込む (1)

タグの絞り込みを解除

ggplot2とRに関するhrsttのブックマーク (12)

  • 美しいペアプロット図を簡単に作る - My Life as a Mock Quant

    美しい描画を行うためのパッケージとして有名なggplot2の仲間?にGGallyパッケージなるものがあるらしく、その中のggpairs関数を使うとふつくしいペアプロットが楽に作成できる。 できるのはいいんだが、この関数を使ってplotする際のフォントサイズ変更方法がググってもマニュアル読んでも出て来なかったのでメモっておく。 例のごとく、パッケージは install.packages("GGally") でインストールしておく。 肝心のフォントサイズの変更については、結論としてparams引数にlistとして入れればよく、各種フォントサイズについては size:散布図の点のサイズ(今回は使用してない) labelSize:各項目(列名)の文字サイズ corSize:相関値の文字サイズ と対応しており、これらを所望のサイズに設定してやればOKだ。*1 実際にPLOTしてみると以下のような感じ

    美しいペアプロット図を簡単に作る - My Life as a Mock Quant
  • ggplot2 に入門してみた

  • plyrで集計 ggplot2でグラフ化 - google analyticsについて

    Table of Contents 複数の指標を時系列で並べる コード(認証) コード(クエリー、集計、グラフ化) 結果 ページ別セッション数の累計表示 期間効果(曜日)を考慮する 考え方 まずはセッション数。 平均滞在時間も曜日効果を見る 分布を見る。滞在時間分布(セグメントデータとして)を見る 考え方 月間別 メディア別 月とメディア別でクロス キーワード + ランディングページ別のセッション滞在時間 ドット表示 + ファセット(ランディングページ) キーワードグループ別滞在時間 Rを使ったアクセスデータの集計(1) plyrとggplotを使ってます。 (*)Rを勉強し始めたら、早めにplyrとggplot2を覚えるのが吉。 見通しがよくなると思います。アクセス数値の集計というより、Rの勉強エントリ。 複数の指標を時系列で並べる アクセスの基的な数値を集計して、同じ時間軸で並べます

    plyrで集計 ggplot2でグラフ化 - google analyticsについて
  • 福島原発のγ線量測定データをggplot2で可視化してみた - ぬいぐるみライフ?

    東京電力が福島原発周辺におけるγ線量などの測定データをPDFで随時公開しているが,これを奥村先生がCSV形式に加工して配布なさっている. http://oku.edu.mie-u.ac.jp/~okumura/stat/data/ このデータをRのggplot2ライブラリで可視化してみた. CSVデータの特徴 各CSVファイルは以下のような形式になっている. $ head fukushima1.csv 【別紙】福島第一原子力発電所モニタリングカーによる計測状況,,,,,,,,, 計測日,計測時間,計測場所,γ線,中性子線,風向,風速(m/s),,, 3月11日,午後5時30分,体育館付近,49nGy/h,-,-,-,,, ,午後5時40分,正門付近,56nGy/h,-,-,-,,, ,午後5時50分,管理棟,64nGy/h,-,-,-,,, ,午後6時45分,MP-6,56nGy/h,-,

    福島原発のγ線量測定データをggplot2で可視化してみた - ぬいぐるみライフ?
  • ggplot2で関数を描画 - 盆栽日記

    通常、関数描画はcurve関数を使えば良い。 curve(x^2, -3, 3) curve(dnorm, -3, 3) これをggplot2で実現するためにはstat_functionを使えば良いが少しトリッキー。 定義域を一旦描画してgeom_blankで消した後、stat_functionで関数を描画する。 library(ggplot2) x <- -3:3 qplot(x, geom = "blank") + stat_function(fun = function(x)x^2) #組み込みの確率分布等使う時は、引数をargsにリストの形で渡す qplot(x, geom = "blank") + stat_function(fun = dnorm, args = list(mean = 0, sd = 1))

    ggplot2で関数を描画 - 盆栽日記
    hrstt
    hrstt 2011/11/17
    geom="blank" とstat_function()
  • ggplot2: Waterfall Charts

    Waterfall charts are often used for analytical purposes in the business setting to show the effect of sequentially introduced negative and/or positive values. Sometimes waterfall charts are also referred to as cascade charts. In the next few paragraphs I will show how to plot a waterfall chart using ggplot2. Data A very small fictional dataset depicting the changes to a company cash position, foun

    ggplot2: Waterfall Charts
  • ggplot2 の自分用メモ集を作ろう - Triad sou.

    プロットの作製 基プロットを作る Geoms Aesthetics 違う種類のグラフを重ねる 参照線の追加 グループ分け 層別プロット スケールと軸 Scales 軸ラベルやタイトルの変更 軸の表示範囲を変更する 軸の左右の余白を削除する 軸表示の修飾 日時の軸スケール 軸区切り値の変更 軸スケールの変更 (変数変換) プロットのソート (離散型変数の水準をソートしてプロット) 座標系の反転:横向き箱ひげ図 極座標への変換:円グラフ 座標系のアスペクト比の指定 色セットの変更 ggplot2 のデフォルト色セットの定義 任意の色セットの利用 凡例 凡例位置の変更 凡例ラベルの変更 凡例の一部を削除する テーマ (グラフ背景・グリッドの色, マージン, フォント) Themes 定義済み theme の適用と編集 theme 要素と theme() の併用時の注意点 フォント変更 保存 g

    ggplot2 の自分用メモ集を作ろう - Triad sou.
  • Home

    You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session. You switched accounts on another tab or window. Reload to refresh your session. Dismiss alert

    Home
    hrstt
    hrstt 2011/10/11
     ggplot2 のwiki in github
  • Latent class mixed models – with graphics

  • Learning R

    Excel Charts Blog posted a video tutorial of how to create a circumplex or rose or dougnut chart in Excel. Apparently this type of chart is very popular in the consulting industry, hence the “Consultants’ Chart”. It is very easy to make this chart in Excel 2010, but it involves countless number of clicks and formulas to format both the source data and the chart itself. In ggplot2 the same can be a

    Learning R
  • ggplot2 book. had.co.nz

    The ggplot book will be published by Springer in July 2009, and is available now for preorder on Amazon. Until it's actually released the latest draft version of the book will be available here. This version of the book was produced on 12 April 2009. A crude change log is available if you want to see what's new. Download The whole book. (pdf, 17 meg) Code qplot Mastering the grammar of graphics Bu

  • ggplot2

    ggplot2 is a plotting system for R, based on the grammar of graphics, which tries to take the good parts of base and lattice graphics and none of the bad parts. It takes care of many of the fiddly details that make plotting a hassle (like drawing legends) as well as providing a powerful model of graphics that makes it easy to produce complex multi-layered graphics. Documentation ggplot2 documentat

  • 1