8¹
1 ¬Æ|�
��
¬Æ�µ
ë¬�¹
2 R ´�o~5�^
�~5�^
An Introduction to the 1st Chinese R Conference Yihui Xie http://www.yihui.name 2 / 25
¬Æ|�
8¹
1 ¬Æ|�
��
¬Æ�µ
ë¬�¹
2 R ´�o~5�^
�~5�^
An Introduction to the 1st Chinese R Conference Yihui Xie http://www.yihui.name 3 / 25
¬Æ|� Ì��
��
¥I<¬�ÆÚOÆ�£http://stat.ruc.edu.cn¤
��Ü:ïÄÄ/A^ÚO�ÆïÄ¥%
£http://www.applstats.org¤
An Introduction to the 1st Chinese R Conference Yihui Xie http://www.yihui.name 4 / 25
¬Æ|� ¬Æ�µ
¬Æ�µ
��µµCz¥�ÚO©ÛI¦
¥�µµCOS Ø�£http://cos.name/bbs¤R �¬�?Ø��µµ��<��I�1±9� m²���|±
An Introduction to the 1st Chinese R Conference Yihui Xie http://www.yihui.name 5 / 25
¬Æ|� ë¬�¹
ë¬ü
p�µé²n�Æ!¥H�Æ!�®�Æ!�®ó��Æ!Ü�
à��E�Æ!¥Ià��Æ!�®���Æ!�®�Æ%nX!
�®ó��Æ!¥I<¬�Æ!�H�Æ!�®Ê�ÊU�Æ!Ä
ѲLn´�Æ!Ü����ÆêÆ�&EÆ�!úô�Æ!Ö=
�âw��Æ!U9�Æ!�®éÜ�Æ!�u�Æ!À����
Æ!û£��!S ���Æ!H®ã²�Æ!�®���Æ!<
�«�¤!3��ÆûÆ�!¥Ià��Æ!úôɲ>f�E�
Æ!ÜSã²Æ�!�®óû�Æ!�®�Ï�Æ
�ïÅ�µ¥��ÄÔ¤!¥���ÔïĤ!¥I�Æ�þ°)
·�ÆïÄ�!�®�Ô¤!¥I�Æ�)��¸ïÄ¥%!�Ô
¤!¥���®ÄÏ|ïĤ!�¯�Æ�Æ�!�Ú�Æ�H
%É+¾��!¥��gÄz¤!¥I�Æ�ÄÔïÄ!¥I��
�!¥��ïÄ)�!�®�Æ�ÆÜ!¥I;¾ý���¥%!
2Ü�ÔïĤ!¥I���ÆïÄ���ïĤ!¥��!�A
^)�ïĤ!¥I�¸�ÆïÄ�!�®;¾ý���¥%!¥
��%n¤
An Introduction to the 1st Chinese R Conference Yihui Xie http://www.yihui.name 6 / 25
¬Æ|� ë¬�¹
ë¬ü
úiè�µäm!#u&IS&E\Îúi!þ° ÑêâÑÖk
�úi!¥�IS!�®¥ç3��Ek�I?úi!�®£Ä!
úô� �äEâk�úi!Watson Wyatt Worldwide!IBM!��8ì!qunar.com!�®Æ�#�º2wk�úi!#Ð�&EEâk�úi
Ñ��µÅ�ó�Ñ��
An Introduction to the 1st Chinese R Conference Yihui Xie http://www.yihui.name 7 / 25
¬Æ|� ë¬�¹
ë¬ü
{²ü�õ��m§ù 130 {<à��å
高校 科研机构 公司企业 出版社
010
2030
4050
60
���U�p 1 :�mk<�3�¶��oº
An Introduction to the 1st Chinese R Conference Yihui Xie http://www.yihui.name 8 / 25
¬Æ|� ë¬�¹
¦�`�o
ùoÐ�Ŭ§·�&ù�½´�gJ±#~�¬Æ
k3�¶1�gCOS R¬Æ§¹k{¤J�a�,k:�,��´��ûJù�Ŭ!A)�»��ë\\��¬Æ�
�©a�Jøù����²�§4�[3R�á�e(£§¦·kŬ��[��ÆS"
�|�<r�Ä��A����Ï©�Çze§^Bdd5âõè
Î
åÍ�RéÐ�^�§bioconductor�äNA^Ò´éÐ�~f"�g�aUåk�§�ÆS�§Þ�´k�§Ï"��[õõ�6§
�Ó?Ú�
²L·�ëY8UÏ�Ê��þ�¯Ì§ªuòØ©?UÐ"
An Introduction to the 1st Chinese R Conference Yihui Xie http://www.yihui.name 9 / 25
¬Æ|� ë¬�¹
¦�`�o
·âï�§L�ÆêÆ�§ÚOâ�´f\�§âÕÆf§�´\
²c��Ò�Ð
·�R�£A�Ñ´3�Ø�Æ5�§Æ�é"(!éØXÚ§ØL9�ép"3d§·�COSØ�L«©%�a-Úª��64§a�ùoõkO%!WuÁz�c��é·��Ãh�ϧ64¤
kCOSþ�*l�Æ�k¤§�6�R3¥IU��õ�<U�"�5OyÛbÒ�base��§(J/��O%Æ��a§åÑvZ"
·�y3�3ÆR�êÆ�[§Ía,��§·�ë\ù�¬Æ"y3ÐÐƧ��ÐUf�Ã
·ù�ë����8§I�^R5©Ûêâ§@Uk�m�½�ë\C
��Ò�g¤���yyB§^BwwkpÃ�5þ°ó�Ø*
R�óI�uЧF"²c�±�ë\�¬�¾,kùoõMM§Û%§Û%§ýÛ%***
An Introduction to the 1st Chinese R Conference Yihui Xie http://www.yihui.name 10 / 25
¬Æ|� ë¬�¹
¦�`�o
<Ñ÷M§ùo¯§Ø�Ñ´=p�,,
@·�¡�k_�"·y3�vk\�Q§ÔÔ!dugCâf\�§�ØÃ��o´LaTeX�§3�þ�é�U�vke1e5"¤±§Ø©��ØЧ�Ð�f¯",§�
CAUÒgC¤Æ�N¬9Ã>A^R)û�¯K���PPT§Ø�´ÄÜ�¬Æ��¦º
A paper on "Data Mining with R" is a possibility, Will you beinterested in such a paper irrespective of whether I come to Beijing?·´ú%·ù�K8võ�<a,�§�ù��Øõ"rŬ3�
0�RÄ�ö��*l�§�Ué�[�Ï��"3í2R�§AT8¥Ñ��1'�Ä:�!�¡�0�5�Ö7^R�ók�ã�m§m©ØNo^§ú�MATLAB§Ò�±)û-��¯K§�5uy٢ش�
y33ÆSR�ó§^��é1§�´ÏL¦^R�ó·uy§êÆ�A^Ò´ò¢S¯KÄ�Ñ5§¿)û§"
An Introduction to the 1st Chinese R Conference Yihui Xie http://www.yihui.name 11 / 25
¬Æ|� ë¬�¹
¦�`�o
Ï�gC�A�vk�L������è§==�´UwÃ�
C�ó§S§éêÆ�.?§¿¢y§é(J§m©ÆSR�ó�´�ÆSO<´NoòêÆ�.C¤O�Å�è�§w�
R�óóä�§�L5¦gCéÚOk����n)"wéõdf§ØL·�aú´§�[ùgCNo3|^R)û¯K�é�"·¦^R�aÉ´R�óóä�éõ§�´z�<�¢S¯KØ��§�Ø´Ñ�±@^O<��§.¾@´O<3)ûgC�
¯K�¤���§Ïd3¦^ù��c�½��Öù���µ
]�§ Ø==�´Ö¼ê�`²§kóä�`²©�¥¬Jø
êÆ�{`²"·�ùÒ´R�ó��å¤3§�´·U���ϧ�,·�´Ð?Y²§�´¦^R�ó·ú�gCÒ�3é�õ§�,¬¤éõ�m§�´%�é��"¤±@�¯�)û¯
K§Ø���¯K)ûL§½öØ�w�{`²©��*l§ÒØ
�^R�ó§Ï�No¦^��{Ñ3@p¡"
An Introduction to the 1st Chinese R Conference Yihui Xie http://www.yihui.name 12 / 25
¬Æ|� ë¬�¹
¦�`�o
R�óér�§�´·�´��Ð?\�ö§F"gC�±é§^��^��%AÃ"
We look forward to meet people in China who are also interested andspecialized in R, and the upcoming seminar should be a good startingpoint and potential chance of future cooperation with you.·�´�~F"Uy|ë\§�J´å¢3��§vk�{"I
S�@��73�£¥���Ô¤§�ì¤õ�
3spssÚsigmaplot¥�E§�,·}ÁX�¦�0�R�©?§�Jéõ<w��èÒÞ'§¤±·<�¥q�vk<�±O·
Ñ|"
·¦^R��´^Bioconductor'�õ§8c��ÄuRÆSgC�Bioconductor�package5©Û·�A½�ê⧤±F"ë¬ÆSR�?§9A^§@£�Ó�Ü�<"
An Introduction to the 1st Chinese R Conference Yihui Xie http://www.yihui.name 13 / 25
¬Æ|� ë¬�¹
¦�����o
ùg·ë\R¬Æ§�Ì���{´µ1. ÿ°ú."�)RØ3õ�ÚO§ëê§�ë꧱9© ê£8þ§�^�o+�"
2. 3)ÕâP��R-PPT,þ`�eZ�R�$1²�§·�äN��µù²��m�'X§±9NoA^"
3. ·²~ú�µR�A^é2�§gC�´Xì��§Ýº��£��§����õ�^����^"
4. F"Uõ@£A��Ó�Ü�*l"
An Introduction to the 1st Chinese R Conference Yihui Xie http://www.yihui.name 14 / 25
¬Æ|� ë¬�¹
¦�����o
·�¯Kµ·´�)�ï��§��Ñ^C�ó§Ï�)��[�.��è'�õ§é�m�Ç�¦'�p"'X·�3��IBIS��k10461§^C$1zgI�10©¨�m"�^R$1ù��§S§�m�½'C��Nõ§Ï�·cAU^R�topmodel�ëê`À§topmodel�.{üõ§�ó�Õ�´O��C����"·Ø��NoUJpR�$��ǧ���
An Introduction to the 1st Chinese R Conference Yihui Xie http://www.yihui.name 15 / 25
¬Æ|� ë¬�¹
·�U�z�o
I?µéÚO�I?§é�Æ�I?
�£µ;�Ü�
An Introduction to the 1st Chinese R Conference Yihui Xie http://www.yihui.name 16 / 25
R ´�o ~5�^
8¹
1 ¬Æ|�
��
¬Æ�µ
ë¬�¹
2 R ´�o~5�^
�~5�^
An Introduction to the 1st Chinese R Conference Yihui Xie http://www.yihui.name 17 / 25
R ´�o ~5�^
~5�^
O�
�ã
An Introduction to the 1st Chinese R Conference Yihui Xie http://www.yihui.name 18 / 25
R ´�o �~5�^
R �±^5Ïé�Ó�Üö
k<¯·´ GG �´ MM§·ù�£�¦/¨
plot(1, type = "n")text(1, 1, "\\MA", cex = 20, vfont = c("serif", "plain"))
An Introduction to the 1st Chinese R Conference Yihui Xie http://www.yihui.name 19 / 25
R ´�o �~5�^
R �±^5`»�
ë����üù
prb = replicate(100, {x = sample(c(0, 5, 10), 1, prob = c(0.7, 0.2, 0.1))y = sample(c(28, 30, 32, 34), 1, prob = c(0.3, 0.4, 0.2, 0.1))plot(0:40, rep(1, 41), type = "n", xlab = "time", ylab = "",
axes = FALSE)axis(1, 0:40)r = rnorm(1, 30, 2)points(x, 1, pch = 15)i = 0while (i <= r) {
i = i + 1segments(x, 1, x + i, 1)if (x + i >= y)
points(y, 1, pch = 19)Sys.sleep(0.1)
}points(y, 1, pch = 19)title(ifelse(x + r <= y, "poor... missed the train!", "Bingo! catched the train!"))Sys.sleep(4)x + r > y
})
An Introduction to the 1st Chinese R Conference Yihui Xie http://www.yihui.name 20 / 25
R ´�o �~5�^
R �±�O¨
���¤O¨
# 5¦��$(��Sys.sleep(5)replicate(10, {alarm(); Sys.sleep(0.2)})
An Introduction to the 1st Chinese R Conference Yihui Xie http://www.yihui.name 21 / 25
R ´�o �~5�^
R �±�y
4·�|ï R Wèj�# Uwe Liggeslibrary(tuneR)Wobj <- bind(sine(440, bit = 16), sine(220, bit = 16))play(Wobj)
An Introduction to the 1st Chinese R Conference Yihui Xie http://www.yihui.name 22 / 25
R ´�o �~5�^
R �±aÍ
4·�|ï R KÑó�¿j�# Yihui Xielibrary(animation)par(mar = c(3, 2.5, 1, 0.2), pch = 20, mgp = c(1.5, 0.5, 0))ani.options(nmax = 200, interval = 0.1)buffon.needle(type = "S")
An Introduction to the 1st Chinese R Conference Yihui Xie http://www.yihui.name 23 / 25
R ´�o �~5�^
R �±ÿÁPc°�w
4·�|ï R ��j�# Yihui Xiealzheimer.test()
An Introduction to the 1st Chinese R Conference Yihui Xie http://www.yihui.name 24 / 25
R ´�o �~5�^
�õ°çSN
�fe|©),,
An Introduction to the 1st Chinese R Conference Yihui Xie http://www.yihui.name 25 / 25