2 R 1 2.1 2.1: R R [ 1.1] [ 2.1] R R R plot() contour() 2

Similar documents
R による統計解析入門


1 1 Gnuplot gnuplot Windows gnuplot gp443win32.zip gnuplot binary, contrib, demo, docs, license 5 BUGS, Chang

untitled

Ver ceil floor FunctionGenerator (PTZCameraSony)

untitled

高等学校学習指導要領

高等学校学習指導要領

gnuplot.dvi

GraphicsWithPlotFull.nb Plot[{( 1), ( ),...}, {( ), ( ), ( )}] Plot Plot Cos x Sin x, x, 5 Π, 5 Π, AxesLabel x, y x 1 Plot AxesLabel

ユニセフ表紙_CS6_三.indd


BASICとVisual Basic

●70974_100_AC009160_KAPヘ<3099>ーシス自動車約款(11.10).indb

Lecture on

REALV5_A4…p_Ł\1_4A_OCF

untitled

「都市から地方への人材誘致・移住促進に関する調査」

<91498EE88CA D815B2E786C73>

〔 大 会 役 員 〕

橡本体資料+参考条文.PDF

plot type type= n text plot type= n text(x,y) iris 5 iris iris.label >iris.label<-rep(c(,, ),rep(50,3)) 2 13 >plot(iris[,1],iris

EPSON PS Tools HTMLヘルプ <Macintosh版>

HTML


untitled

2.2 Sage I 11 factor Sage Sage exit quit 1 sage : exit 2 Exiting Sage ( CPU time 0m0.06s, Wall time 2m8.71 s). 2.2 Sage Python Sage 1. Sage.sage 2. sa

Adobe Postscript 3 Expansion Unit

Microsoft Word - 触ってみよう、Maximaに2.doc

学習内容と日常生活との関連性の研究-第2部-第4章-1

DMS†ifiàfic†jŁ\1-4

教室案内.pptx

1


1.3 2 gnuplot> set samples gnuplot> plot sin(x) sin gnuplot> plot [0:6.28] [-1.5:1.5] sin(x) gnuplot> plot [-6.28:6.28] [-1.5:1.5] sin(x),co

2 1 Mathematica Mathematica Mathematica Mathematica Windows Mac * Mathematica 9-1 Expand[(x + y)^7] (x + y) 7 x y Shift *1 Mathematica 1.12

ÉvÉçPM_02

コンピュータ概論

untitled

「統 計 数 学 3」


2 4 BASIC (4) WWW BASIC 1 2 ( ) ( ) 1.2 3B 5 14 ( ) ( ) 3 1 1

2 1 Octave Octave Window M m.m Octave Window 1.2 octave:1> a = 1 a = 1 octave:2> b = 1.23 b = octave:3> c = 3; ; % octave:4> x = pi x =

橡Deskの操作.PDF

6.1 OOP Multi Sub a

270万回再生レポート

画像研修

( a 3 = 3 = 3 a a > 0(a a a a < 0(a a a

sin x


PowerPoint プレゼンテーション

Excel ではじめる数値解析 サンプルページ この本の定価 判型などは, 以下の URL からご覧いただけます. このサンプルページの内容は, 初版 1 刷発行時のものです.


II - ( 02 ) 1,,,, 2, 3. ( ) HP,. 2 MATLAB MATLAB, C Java,,., MATLAB, Workspace, Workspace. Workspace who. whos. MATLAB, MATLAB Workspace. 2.1 Workspac

cpall.dvi

untitled

, 3, 6 = 3, 3,,,, 3,, 9, 3, 9, 3, 3, 4, 43, 4, 3, 9, 6, 6,, 0 p, p, p 3,..., p n N = p p p 3 p n + N p n N p p p, p 3,..., p n p, p,..., p n N, 3,,,,

Appendix A BASIC BASIC Beginner s All-purpose Symbolic Instruction Code FORTRAN COBOL C JAVA PASCAL (NEC N88-BASIC Windows BASIC (1) (2) ( ) BASIC BAS

Adobe Bridge Bridge Bridge Bridge P10 Bridge Finder 2

ユニセフ表紙_CS6_三.indd

GNUPLOT GNUPLOT GNUPLOT 1 ( ) GNUPLO

グラフ数値読み取りシステム (GSYS2.4) 利用の手引

.Z \111...R.s.[

1 1.1 (JCPRG) 30 Nuclear Reaction Data File (NRDF) PC GSYS2.4 JCPRG GSYS2.4 Java Windows, Linux, Max OS X, FreeBSD GUI PNG, GIF, JPEG X Y GSYS2

OS Windows Mac OS Windows Mac OS Windows XP Mac OS X OS Windows 95 Mac OS

: Shift-Return evaluate 2.3 Sage? Shift-Return abs 2 abs? 2: abs 3: fac

Keynote 3 ユーザーズガイド

Adobe Postscript 3 Expansion Unit

6 Tgif William Chia-Wei Chang tgif 3.0 pixmap URL Tgif 6.1: Tgif


Microsoft PowerPointの利用 V 1,1 暫定版

簡単ViX講座

BRADY Worldwide, Inc. BRADY BRADY BRADY BMP 51 BRADY Worldwide, Inc. Microsoft Windows Microsoft BRADY 2011 BRADY Worldwide, Inc. All Rights Reserved

卒 業 研 究 報 告.PDF

(2 Linux Mozilla [ ] [ ] [ ] [ ] URL 2 qkc, nkc ~/.cshrc (emacs 2 set path=($path /usr/meiji/pub/linux/bin tcsh b

untitled

untitled


untitled

超簡単、売上入力画面作成

N88 BASIC 0.3 C: My Documents 0.6: 0.3: (R) (G) : enterreturn : (F) BA- SIC.bas 0.8: (V) 0.9: 0.5:

1. A0 A B A0 A : A1,...,A5 B : B1,...,B

Windows (L): D:\jyugyou\ D:\jyugyou\ D:\jyugyou\ (N): en2 OK 2

1.2 R R Windows, Macintosh, Linux(Unix) Windows Mac R Linux redhat, debian, vinelinux ( ) RjpWiki ( RjpWiki Wiki

Contents 1 Scilab

Java updated

ワードプロセッシングについて

(w) F (3) (4) (5)??? p8 p1w Aさんの 背 中 が 壁 を 押 す 力 垂 直 抗 力 重 力 静 止 摩 擦 力 p8 p

2008 DS T050049

表1-表4_No78_念校.indd

1 R Windows R 1.1 R The R project web R web Download [CRAN] CRAN Mirrors Japan Download and Install R [Windows 9

C:/KENAR/0p1.dvi

modarn-japanese-font.key

I

AuthorManual_JSTP.ppt

24.15章.微分方程式

SHOBI_Portal_Manual

( ) a, b c a 2 + b 2 = c : 2 2 = p q, p, q 2q 2 = p 2. p 2 p q 2 p, q (QED)


Transcription:

1 R for Windows R Windows Mac OS X Linux Windows 1.1 1.2 R R cat( n ) R R-00.0(00.0 ) etc Rconsole font=tt Courier New font = TT MS Gothic points = 10 points = 14 Rdevga TT Arial TT MS Gothic R demo(japanese) 1.1: R 1

2 R 1 2.1 2.1: R R [ 1.1] [ 2.1] R R R plot() contour() 2

2 3D 3D surface3d() open3d() 2D surface3d() 2.2 100 > 1 + 1 2 > sin( 31 / 432 pi) 0.2235337 R > ( 3 + 2i ) (5 + 9i) -3+37i i > c(1,2,3) c(4,5,6) 4 10 18 c() a b > c(1,2,3) %o% c(4,5,6) 4 5 6 8 10 12 12 15 18 > x <- c(1,2,3) R x > x x sin > x <- seq( 0, 2 pi, length = 100) > plot( sin( x ), type = l ) sin seq() 0 2π 100 > x 0.00000000 0.06346652 0.12693304 0.19039955 0.25386607 0.31733259 0.38079911 6.09278575 6.15625227 6.21971879 6.28318531 100 3

2 2.3.R R ; ; # 2.4 2.1 2.1 1: 2: bunkatu <- 50 ;# 3: hani <- 3 ;# 4: 5: # 6: x <- seq( - hani, hani, length = ( bunkatu + 1 ) ) ; 7: y <- x ; 8: z <- outer( x, y, function( a, b )a + b 1i ) ; 9: 10: # 11: w <- z 2 ; 12: 13: # 14: w[ is.na( w ) ] <- 0 ; 15: 16: u <- Re( w ) ;# 17: v <- Im( w ) ;# 18: 19: # 4

2 20: contour( x, y, u ) 21: contour( x, y, v, add = TRUE )#add = TRUE outer() outer() 2 contour() 5

3 R 3.1 R RGui R 3D rgl Janese(tokyo) OK rgl R library(rgl) > library( ) 3.2 rgl > demo( ) demo(rgl) library(rgl) R > example() 6

3 3.1: rgl 3D example(persp) 3D? graphics lattice image plotmath 3.3 >? > help() html R > help.start() html () > library(help= ) > str() 7

3 > 8

4 rgl 3D 4.1 genkai <- 10 ; bunkatu <- 50 ; hani <- 3 ; x <- seq( - hani, hani, length = ( bunkatu + 1 ) ) ; y <- x ; z <- outer( x, y, function( a, b ) { a + b 1i } ) ; w <- exp( 1 / z ) ; w[ is.na( w ) ] <- genkai ; u <- Re( w ) ; v <- Im( w ) ; u[ which( u >genkai ) ] <- genkai ; v[ which( v >genkai ) ] <- genkai ; u[ which( u <( - genkai ) ) ] <- ( - genkai ) ; v[ which( v <( - genkai ) ) ] <- ( - genkai ) ; open3d( ) ; rgl.bg( color = #6666ff ) surface3d( x, y, u, color = #ff0000, alpha = 0.8, back = lines ) ; surface3d( x, y, v, color = #00ff00, alpha = 0.8, back = lines ) ; genkai 3D bunkatu hani x y w open3d() 3D 3D 9

4 rgl 3D rgl.bg() surface3d help() 10

5 <- >- + - / %% %/% %o% % % ==!= <= >= < >! & && abs() sqrt() round() floor() ceiling() exp() log() 11

5 log2() log10() sin() cos() tan() asin() acos() atan() sign(x) min(x) max(x) sum(x) prod(x) sd(x) cumsum() runif(n) union(x,y) intersect(x,y) unique(x) any(x) all(x) which( ) which.min(x) which.max(x) eigen(x) t(x) outer(a,b) sweep(x,n,a) x x x x x n x,y x,y x x 1 1 x x x n paste(x1,x2, ) function() <- function( 1, ) () a= 12

5 ; for() for R for(i=1;i<5;i++) for(i in 1:4) in i i while while while( ) repeat repeat repeat break break next if if( )else if( )else seq(a,b) sapply(x,f) mapply(f,x1,x2, ) a b 1 length = x : a b x by=x : x x f sapply x setwd( ) getwd() file( ) readlines(con) cat(x,file= ) Sys.time() Sys.Date() con X 1970/1/1 win.metafile() postscript() pdf() pictex() png() jpeg() file= width=a,length=b dev.off() PDF pictex png jpeg 13

5 bmp() tiff() tiff plot(a,b) lines(a,b) abline(a=s,b=k) text(x,y,text) a,b a x b y a,b a x b y s k (x,y) text type = x : x=p l o n () col = #rrggbb : cex = 1: 1 main= popo : sub = coco : xlim,ylim=c(, ): x,y axes = TRUE/FALSE : x,y help(par) rgl.open() rgl.set() rgl.cur() rgl.close() rgl.clear() rgl.pop() rgl.quit() rgl.viewpoint() rgl.light() rgl.bg() rgl.points() rgl.sprites() rgl.lines() rgl.triangles() rgl.surface() rgl.spheres() rgl.snapshot() srgl.bbox() 14