タグ

chartとrに関するmuddydixonのブックマーク (2)

  • Create Elegant Data Visualisations Using the Grammar of Graphics • ggplot2

    Usage It’s hard to succinctly describe how ggplot2 works because it embodies a deep philosophy of visualisation. However, in most cases you start with ggplot(), supply a dataset and aesthetic mapping (with aes()). You then add on layers (like geom_point() or geom_histogram()), scales (like scale_colour_brewer()), faceting specifications (like facet_wrap()) and coordinate systems (like coord_flip()

    Create Elegant Data Visualisations Using the Grammar of Graphics • ggplot2
  • ggplot2のqplot関数のまとめ - ぬいぐるみライフ?

    Rのステキグラフィックスライブラリ「ggplot2」のqplot関数についてまとめてみた.少し頑張りすぎた. 関連記事:ggplot2の概要 - ぬいぐるみライフ? qplot関数とは ggplot2にはqplot(Quick PLOTの略)というステキな関数が用意されている.これを使うと,デフォルトの設定のままでもRのbaseライブラリ(plot関数など)と比べてきれいな図が描ける上に,色付けや凡例の設定もある程度よしなにやってくれる. 以降,ggplot2のqplot関数について詳しく見ていくことにしよう. この記事の構成 最初に,qplot関数について以下のことをチェックする. qplot関数の基 qplot関数のdataパラメータ 次に,以下のグラフについてbaseライブラリとggplot2のqplot関数の間でシンタックスの違いや描画されるグラフを比較していく. 散布図 折れ線

    ggplot2のqplot関数のまとめ - ぬいぐるみライフ?
  • 1