グラフィックス参考実例集:風船プロット
をテンプレートにして作成
[
トップ
] [
新規
|
一覧
|
検索
|
最終更新
|
ヘルプ
]
開始行:
COLOR(red){SIZE(20){グラフィックス参考実例集:balloonplot()}}
([[グラフィックス参考実例集]]に戻る。[[Rのグラフィックスパラメータ]]を参照する。)~
アドオンパッケージ gregmisc 中の balloonplot() 関数は二元分類データの各セルのデータ値に比例する面積の円を描く。~
example(balloonplot) より。~
library(gregmisc)
# Create an Example Data Frame Containing Car x Color data
carnames <- c("bmw","renault","mercedes","seat")
carcolors <- c("red","white","silver","green")
datavals <- round(rnorm(16, mean=100, sd=60),1)
data <- data.frame(Car=rep(carnames,4),
Color=rep(carcolors, c(4,4,4,4) ),
Value=datavals )
# generate balloon plot with default scaling
balloonplot( data$Car, data$Color, data$Value)
#ref(balloon1.png)
終了行:
COLOR(red){SIZE(20){グラフィックス参考実例集:balloonplot()}}
([[グラフィックス参考実例集]]に戻る。[[Rのグラフィックスパラメータ]]を参照する。)~
アドオンパッケージ gregmisc 中の balloonplot() 関数は二元分類データの各セルのデータ値に比例する面積の円を描く。~
example(balloonplot) より。~
library(gregmisc)
# Create an Example Data Frame Containing Car x Color data
carnames <- c("bmw","renault","mercedes","seat")
carcolors <- c("red","white","silver","green")
datavals <- round(rnorm(16, mean=100, sd=60),1)
data <- data.frame(Car=rep(carnames,4),
Color=rep(carcolors, c(4,4,4,4) ),
Value=datavals )
# generate balloon plot with default scaling
balloonplot( data$Car, data$Color, data$Value)
#ref(balloon1.png)
ページ名: