01 02 03 04 05 06 07 08 09 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30
2009 : 01 02 03 04 05 06 07 08 09 10 11 12
2008 : 01 02 03 04 05 06 07 08 09 10 11 12
2007 : 01 02 03 04 05 06 07 08 09 10 11 12
2006 : 01 02 03 04 05 06 07 08 09 10 11 12
# 横向きの円弧矢印
grid.arrows2 <- function(x1=0.1, x2=0.5, y=0.5, hump=10, angle=20, ends="last", type="open", ...){
x <- seq(from=x1, to=x2, (x2-x1)/100)
tmp.y <- seq(-(x2-x1)/2, to=(x2-x1)/2, (x2-x1)/100)^2 * hump
y <- tmp.y + y - if(hump>0) max(tmp.y) else min(tmp.y)
grid.arrows(x=unit(x, "npc"), y=unit(y, "npc"), ends=ends, type=type, angle=angle, ...)
}
# 縦向きの円弧矢印
grid.arrows3 <- function(x=0.5, y1=0.1, y2=0.5, hump=10, angle=20, ends="last", type="open", ...){
y <- seq(from=y1, to=y2, (y2-y1)/100)
tmp.x <- seq(-(y2-y1)/2, to=(y2-y1)/2, (y2-y1)/100)^2 * hump
x <- tmp.x + x - if(hump>0) max(tmp.x) else min(tmp.x)
grid.arrows(y=unit(y, "npc"), x=unit(x, "npc"), ends=ends, type=type, angle=angle, ...)
}
# 横向きの丸括弧
grid.lines2 <- function(x1=0.1, x2=0.5, y=0.5, hump=10, ...){
x <- seq(from=x1, to=x2, (x2-x1)/100)
tmp.y <- seq(-(x2-x1)/2, to=(x2-x1)/2, (x2-x1)/100)^2 * hump
y <- tmp.y + y - if(hump>0) max(tmp.y) else min(tmp.y)
grid.lines(x=unit(x, "npc"), y=unit(y, "npc"), ...)
}
# 縦向きの丸括弧
grid.lines3 <- function(x=0.5, y1=0.1, y2=0.2, hump=10, ...){
y <- seq(from=y1, to=y2, (y2-y1)/100)
tmp.x <- seq(-(y2-y1)/2, to=(y2-y1)/2, (y2-y1)/100)^2 * hump
x <- tmp.x + x - if(hump>0) max(tmp.x) else min(tmp.x)
grid.lines(y=unit(y, "npc"), x=unit(x, "npc"), ...)
}
# 使用例
library(grid)
grid.arrows2(x1=0.1, x2=0.5, hump=2)
grid.arrows3(x=0.3, y1=0.4, y2=0.2, hump=-1)
grid.lines2(x1=0.7, x2=0.8, y=0.1, hump=1.2)
grid.lines3(x=0.7, y1=0.4, y2=0.8, hump=-0.5)
grid.grill(h=seq(0,1,0.1), v=seq(0,1,0.1)) # 縦横の格子を表示
dir *.pdf /b > tmp.txt
C:\Progra~1\ConcatPDF\ConcatPDF.exe /add-outlines /outfile merge.pdf @tmp.txt
del tmp.txt
<<
oneway.test(data, group) # http://aoki2.si.gunma-u.ac.jp/lecture/Average/oneway-ANOVA-r.html
kruskal.test(data, group) # http://aoki2.si.gunma-u.ac.jp/lecture/Average/kwtest-r.html
kruskal.wallis(data, group) # http://aoki2.si.gunma-u.ac.jp/R/kruskal-wallis.html
2009 : 01 02 03 04 05 06 07 08 09 10 11 12
2008 : 01 02 03 04 05 06 07 08 09 10 11 12
2007 : 01 02 03 04 05 06 07 08 09 10 11 12
2006 : 01 02 03 04 05 06 07 08 09 10 11 12
最終更新時間: 2009-12-01 22:42