R語言中的esttab命令 R語言常用命令集合

2021-10-19 04:07:36 字數 1025 閱讀 2146

plot(x, y = null, type = "p", xlim = null, ylim = null,

log = "", main = null, sub = null, xlab = null, ylab = null,

ann = par("ann"), axes = true, frame.plot = axes,

panel.first = null, panel.last = null, asp = na, ...)

plot 支援r 模組有:functions,data.frames,density,factor,table等常用結構。

#設定所有可用的引數

plot(x = mtcars$wt,

y = mtcars$mpg,

type="o",#線型

main="標題",

sub="子標題",

xlab="x軸",

ylab="y軸",

asp=0.1)#y/x的比例,y軸數值長度與x軸數值長度的比值

點"p" for points,

線"l" for lines,

點線"b" for both,

點線圖去掉點"c" for the lines part alone of "b",

覆蓋式的電線"o" for both 『overplotted』,

類似直方圖"h" for 『histogram』 like (or 『high-density』) vertical lines,

樓梯狀"s" for stair steps,

樓梯狀"s" for other steps, see 『details』 below,

不顯示"n" for no plotting.

system.file("data", "morley.tab" , package="datasets")#從物件 morley 中得到實驗資料的檔案路徑

file.show(filepath)#檢視檔案內容

read.table(filepath)#以資料框的形式讀取資料

R語言中的esttab命令 R語言常用命令集合

plot x,y null,type p xlim null,ylim null,log main null,sub null,xlab null,ylab null,ann par ann axes true,frame.plot axes,panel.first null,panel.last ...

R語言中的引號

aa this is an example.1 this is an example.bb this is an example.1 this is an example.identical aa,bb 1 true anne s home 1 anne s home anne s home 1 a...

R語言中的陣列

陣列 不同於矩陣和資料框,維度大於2。r中最簡單的陣列 3維。行,列,面 如下兩行 三列 四面的陣列。dim1 c a1 a2 dim2 c b1 b2 b3 dim3 c c1 c2 c3 c4 dat array 1 24,c 2,3,4 dimnames list dim1,dim2,dim3...