普通條形圖和棘狀圖坐標軸取值對比

普通條形圖和棘狀圖坐標軸取值對比

來自專欄 R語言入門精要

library(vcd)attach(Arthritis)counts=table(Improved,Treatment)print(counts)barplot(counts,legend=rownames(counts),args.legend=c(x=2.16,y=52.12))detach(Arthritis)

TreatmentImproved Placebo Treated None 29 13 Some 7 7 Marked 7 21

library(vcd)attach(Arthritis)counts=table(Improved,Treatment)print(counts)spine(counts,main="Spinogram Example")detach(Arthritis)

TreatmentImproved Placebo Treated None 29 13 Some 7 7 Marked 7 21


推薦閱讀:

python有趣的解包用法
如何用nodejs開發爬蟲程序?
如何學好c語言?
Python分詞模塊jieba (01)-jieba安裝,分詞,提取關鍵詞,自定義分詞,切換詞庫講解

TAG:編程 | R語言實戰書籍 |