2014年1月2日木曜日

Rでライングラフ

Rでライングラフの作り方。

> barplot(VADeaths, beside = TRUE, #バーグラフの作成
+         legend = rownames(VADeaths))#凡例の付加
> title(main = "Death Rates in Virginia", font.main = 4, cex =1)
> matplot(VADeaths, type = "l") #type = "l"はLine のl
> legend.xy <- locator(1)#マウスを使って座標を得る


0 件のコメント:

コメントを投稿