Your website is the best website I've ever visited – this is no mean statement given that in the past 7 years I have spent an average of 10 hours per day online! If you wouldn't mind, could give me a template just like you have here? I would be eternally grateful!
BTW I also have interest in nonparametric statistics and data mining using R.
Hi, I'm a Nigerian who appreciate innovation and willing to learn from expert like you. I got to know about R from a friend some weeks ago. Today I'm fulfill by your website it is one of the best.
I want to appreciate you. I got more interested to learn R after visiting your site. I will appreciate it if the can assist me in my learning. Thank you
Thank you for your advice! 3D animation is indeed in my schedule. Currently I’m not familiar with Blender, and I don’t know whether there are interfaces from R to Blender… Actually my initial plan was to use the package ‘rgl’ which has already provided a 3D visualization device system via OpenGL, which is also convenient.
P.S. there is a very famous statistician also named Silverman; just now I suddenly forgot who he was and spent about 10 minutes thinking about it before I ultimately realized that it was Bernard Silverman… (I wonder whether you are him )
Hi! Yihui, I actually quite despert with statistics and the more despertly when my lecture ask me and all my classmate to do problems using R-language without teaching us firstly how to use it. Can you teach me hou to use r-language? It is definitly help my to pass this course.
Hi, I'm relatively new to R and stumbled upon your animation package. WOW!!! I teach an undergraduate course in econometrics and this will be HUGE help in my lectures. Well done!!!
Thanks, Neil, I'll add more animation functions to that package in future, and if you have any ideas in your teaching, please feel free to drop me an email
Great site!!! I like the ideas for animations a lot.
Did you think also about creating animations by producing a series of snapshots to BMP and then "merging" them together to an AVI film with a free tool 'bmp2avi'? Its a bit of more work, but you are able to produce an actual movie.
Actually producing BMP images is easy, say, using the bmp() device before creating animations inside R. Then generate AVI films with bmp2avi. Or you may try the function saveMovie() in the package animation, which can also produce AVI movies with the help of ImageMagick.
Hi YH Xie, As an R daily user and a statistics student as well, I really have enjoyed your blog on Animation using R. Good on you, young man and I am pretty proud of that we share the same surname. Just one little suggestion. You may be interested in having a quick experience with what is happening in the R China Forum at http://rbbs.biosino.org/Rbbs/ 后生可畏 前途无量 with best regards,
Hi Mr Xie, thank you for your attention and suggestion; I’m glad that you like my work. In fact I have created a forum much earlier than the Rbbs: http://cos.name/bbs and even an English forum http://cos.name/en
Hi Mr. Xie,
I realized that using animation in R works fine in Windows but not in Unix. There is very significant flickering in the animation when running R animation in Unix. Do you know of any solution to this problem? By the way, I discovered this because I use R to create animations to demonstrate bootstrap computations.
Regards,
GC
You may try to save the animation as Flash, GIF or HTML format; I think it will be more fluent than running the animation in R windows graphics device. For the different formats which the package supports, see:
Yihui Xie and Xiaoyue Cheng. animation: A package for statistical animations. R News, 8(2):23-27, October 2008. [ bib | http | .pdf ]
Yes, Flash is already available for the animations. If you are using the animation package, you may see the function saveSWF(), which can save the animations as Flash via the SWF Tools. I think it’s not so easy to port Flash to R directly, but to create ActionScript with R might be much easier. Besides, there are also some packages that use SVG to create animations, one of which I know is SVGAnnotation by Duncan Temple Lang at Omegahat.
So, the analysis between predictor and response variables is too much? Covariance is at the heart of fractional factorial designs where we experiment with large numbers of variables, being aware of confounding of course. I am not sure how you fight a statistical method. Data exploration is a journey not a perfeced gem.
I am very impressed with your website and the content.
I have been using the R commander to import excel spreadsheets into R and this seems to work well.
I am new to R and just learning.
My main area of focus are Geographic Information Systems and I have been trying some of the packages such as sp, maptools, rgdal, etc.
I would like to add Web Mapping Services (WMS) to R maps as a basemap…so that I could bring in ESRI Streetmap World basemaps and then add vector points to the maps.
Do you know of any such R code that does this ?
Best regards,
Jim Tobias
Jim Tobias MSc, GISP
Sr. GIS Developer
Northrop Grumman Contractor
Tuberculosis Surveillance, Epidemiology, & Outbreak Investigation Branch (SEOIB)
Centers for Disease Control and Prevention
Office: 404-639-8575 Cell: 404-428-3160
Email: jtobias@cdc.gov http://www.linkedin.com/in/jimtobias
I’ve only used R packages maps, maptools and mapdata; I know little about other packages. You can draw a map with the function map() and add points to it by points(), e.g.
library(maps)
## United States
map('state')
## Ames
points(-93.625488, 42.043429)
I am an MPhil student in Hong Kong and a big admirer of your website!
I am about to begin some heavy coding in R and I wonder what Editor you would recommend to use.
I found a bunch of options: Notepad++, Tinn-R, Emacs+ESS, Eclipse, etc
Under Windows, I use the (ugly) editor in RGui for small amount of code, and Tinn-R for harder jobs; I tried Komodo Edit too for a while (with SciViews-K extension: http://www.sciviews.org/SciViews-K/index.html); under Ubuntu (Linux), I often use Kate (together with Konsole so that I can open a terminal window within Kate and send R code to the terminal). I know most Linux users may prefer Emacs+ESS, but I’m not familiar with Emacs at all…
My requirements for editors are fairly simple: (1) supports R code highlighting (2) can send R code to a terminal window (or command window).
Arha! I forgot to mention the OS I normally use, it is Windows of coz but I am trying to switch over to using Linux, currently adapting through portable ubuntu!
Wicked, I will try out TinnR in windows and Emacs+ESS in ubuntu.
I am trying to create a map with barplots overlaying on top of the map at arbitrary positions, in R of coz.
I have no problem with the code for plotting (separately) the map the barplots. But to overlay the barplots on top of the map seems to be a task and I couldn’t find the solution after an hour of googling…
Thanks for your suggestion, I was trying them out until I received an email from a guy who had the same problem before, he solved it using the subplot function from the TeachingDemos package.
Hi,
Your website is the best website I've ever visited – this is no mean statement given that in the past 7 years I have spent an average of 10 hours per day online!
If you wouldn't mind, could give me a template just like you have here? I would be eternally grateful!
BTW I also have interest in nonparametric statistics and data mining using R.
Thanks for your appreciation
So you also use this blog system? (bo-blog)
And I wonder whether you came here from another site http://R.yihui.name
Hi,
I'm a Nigerian who appreciate innovation and willing to learn from expert like you. I got to know about R from a friend some weeks ago. Today I'm fulfill by your website it is one of the best.
I want to appreciate you. I got more interested to learn R after visiting your site. I will appreciate it if the can assist me in my learning. Thank you
Hi, I’m really glad that you like my web site, and I’ll do my best to make it as interesting as possible with the help of the powerful R language
Hi,
Maybe there is a way to use R with Blender? Wouldn’t it be great to have animation of statistics in a 3D animation program.
http://www.blender.org
Thank you for your advice! 3D animation is indeed in my schedule. Currently I’m not familiar with Blender, and I don’t know whether there are interfaces from R to Blender… Actually my initial plan was to use the package ‘rgl’ which has already provided a 3D visualization device system via OpenGL, which is also convenient.
P.S. there is a very famous statistician also named Silverman; just now I suddenly forgot who he was and spent about 10 minutes thinking about it before I ultimately realized that it was Bernard Silverman… (I wonder whether you are him
)
hi,
I send you one e-mail, which i got from one friend here, for get one AMOS program from you. Can you give me one response?
thanks!
sheng
OK, I've received your email and I'll reply it soon.
Hi! Yihui,
I actually quite despert with statistics and the more despertly when my lecture ask me and all my classmate to do problems using R-language without teaching us firstly how to use it. Can you teach me hou to use r-language? It is definitly help my to pass this course.
Hi,
I'm relatively new to R and stumbled upon your animation package. WOW!!! I teach an undergraduate course in econometrics and this will be HUGE help in my lectures. Well done!!!
Thanks, Neil, I'll add more animation functions to that package in future, and if you have any ideas in your teaching, please feel free to drop me an email
Hi!
Great site!!! I like the ideas for animations a lot.
Did you think also about creating animations by producing a series of snapshots to BMP and then "merging" them together to an AVI film with a free tool 'bmp2avi'? Its a bit of more work, but you are able to produce an actual movie.
Thanks a million for a lot of excellent examples!
Cheers!
Michal
Actually producing BMP images is easy, say, using the bmp() device before creating animations inside R. Then generate AVI films with
bmp2avi. Or you may try the functionsaveMovie()in the packageanimation, which can also produce AVI movies with the help ofImageMagick.To see a World in a Grain of Sand; And a Heaven in a Wild Flower; …
Hold Infinity in the palm of your hand; And Eternity in an hour.
I like this poem
hey again!
are you planning to go to userR2008? i am.
m.
Yes, I have already been accepted
See you in Dortmund!
Hi YH Xie,
As an R daily user and a statistics student as well, I really have enjoyed your blog on Animation using R.
Good on you, young man and I am pretty proud of that we share the same surname.
Just one little suggestion. You may be interested in having a quick experience with what is happening in the R China Forum at
http://rbbs.biosino.org/Rbbs/
后生可畏 前途无量
with best regards,
J.X.
Hi Mr Xie, thank you for your attention and suggestion; I’m glad that you like my work. In fact I have created a forum much earlier than the Rbbs: http://cos.name/bbs and even an English forum http://cos.name/en
Hi Mr. Xie,
I realized that using animation in R works fine in Windows but not in Unix. There is very significant flickering in the animation when running R animation in Unix. Do you know of any solution to this problem? By the way, I discovered this because I use R to create animations to demonstrate bootstrap computations.
Regards,
GC
You may try to save the animation as Flash, GIF or HTML format; I think it will be more fluent than running the animation in R windows graphics device. For the different formats which the package supports, see:
Yihui Xie and Xiaoyue Cheng. animation: A package for statistical animations. R News, 8(2):23-27, October 2008. [ bib | http | .pdf ]
Hello,

your blog is amazing! please keep up the work!
perhaps you could make something on Javascript API – WebGIS – and R-Statistic ?
cheers
Jens
Great website! Ever considered using Adobe Flash for your animations? Maybe port flash over to R?
Yes, Flash is already available for the animations. If you are using the
animationpackage, you may see the functionsaveSWF(), which can save the animations as Flash via the SWF Tools. I think it’s not so easy to port Flash to R directly, but to create ActionScript with R might be much easier. Besides, there are also some packages that use SVG to create animations, one of which I know isSVGAnnotationby Duncan Temple Lang at Omegahat.Hi, Xie 兄
Great website! Admire what you have done in Cos.name
向你学习。
Best,
Ximing
Thanks, and glad to know you
So, the analysis between predictor and response variables is too much? Covariance is at the heart of fractional factorial designs where we experiment with large numbers of variables, being aware of confounding of course. I am not sure how you fight a statistical method. Data exploration is a journey not a perfeced gem.
Your animations are very helpful, I only wish you had one for: Ratio Estimation Sampling. Please post one if you have any ideas!
Thanks for your suggestion! I’ve almost done that: http://yihui.name/en/2010/03/a-demo-for-the-ratio-estimation/
I am very impressed with your website and the content.
I have been using the R commander to import excel spreadsheets into R and this seems to work well.
I am new to R and just learning.
My main area of focus are Geographic Information Systems and I have been trying some of the packages such as sp, maptools, rgdal, etc.
I would like to add Web Mapping Services (WMS) to R maps as a basemap…so that I could bring in ESRI Streetmap World basemaps and then add vector points to the maps.
Do you know of any such R code that does this ?
Best regards,
Jim Tobias
Jim Tobias MSc, GISP
Sr. GIS Developer
Northrop Grumman Contractor
Tuberculosis Surveillance, Epidemiology, & Outbreak Investigation Branch (SEOIB)
Centers for Disease Control and Prevention
Office: 404-639-8575 Cell: 404-428-3160
Email: jtobias@cdc.gov
http://www.linkedin.com/in/jimtobias
I guess you might need to refer to this page: http://geodacenter.asu.edu/map-packages-on-cran
I’ve only used R packages maps, maptools and mapdata; I know little about other packages. You can draw a map with the function map() and add points to it by points(), e.g.
library(maps) ## United States map('state') ## Ames points(-93.625488, 42.043429)Hi !
I am an MPhil student in Hong Kong and a big admirer of your website!
I am about to begin some heavy coding in R and I wonder what Editor you would recommend to use.
I found a bunch of options: Notepad++, Tinn-R, Emacs+ESS, Eclipse, etc
Thanks!
Carlos
Under Windows, I use the (ugly) editor in RGui for small amount of code, and Tinn-R for harder jobs; I tried Komodo Edit too for a while (with SciViews-K extension: http://www.sciviews.org/SciViews-K/index.html); under Ubuntu (Linux), I often use Kate (together with Konsole so that I can open a terminal window within Kate and send R code to the terminal). I know most Linux users may prefer Emacs+ESS, but I’m not familiar with Emacs at all…
My requirements for editors are fairly simple: (1) supports R code highlighting (2) can send R code to a terminal window (or command window).
HTH.
Arha! I forgot to mention the OS I normally use, it is Windows of coz but I am trying to switch over to using Linux, currently adapting through portable ubuntu!
Wicked, I will try out TinnR in windows and Emacs+ESS in ubuntu.
Thanks!
Carlos
Hi again,
I am trying to create a map with barplots overlaying on top of the map at arbitrary positions, in R of coz.
I have no problem with the code for plotting (separately) the map the barplots. But to overlay the barplots on top of the map seems to be a task and I couldn’t find the solution after an hour of googling…
Do you have any advice?
Thanks for your time in advance!
Carlos
My suggestion is to use
symbols()orstars(), e.g.library(maps) library(mapdata) map("china") ## you have several choices of symbols symbols(c(85, 113, 128), c(41, 24, 47), thermometers = matrix(runif(3 * 3, 0.2, 0.5), 3), add = TRUE) map("china") ## latitude and longitude specified in 'locations' stars(matrix(runif(3 * 8, 1, 10), 3), scale = FALSE, locations = cbind(c(85, 113, 128), c(41, 24, 47)), col.stars = 2:4, add = TRUE)Thanks for your suggestion, I was trying them out until I received an email from a guy who had the same problem before, he solved it using the subplot function from the TeachingDemos package.
Hi :
我想你应该不介意我使用中文吧:) 因为我知道你是华人,COS站的admin 。
我目前从事生物信息学领域的数据分析和初级科研工作,数据可视化是我所感兴趣的方向之一,同时对R有初步了解;更多的我是亲自使用SVG设计和创建更加符合生物信息数据特征的可视化方案,然后再转换为其他需要的位图格式或者其他矢量格式
我大学期间主修计算数学和计算机软件,同时因对生物信息学感兴趣,辅修了它。 非常高兴认识你,需要或者可能的话,我也非常愿意参与COS站的部分工作。
很好,很高兴认识一个同行,也感谢你的关心,如果有意作为作者参加COS主站文章的撰写,请阅读: http://cos.name/2008/11/how-to-work-with-cos/
Hi. Nice work on the animation! It is indeed very inspiring.
Hope to see more work of yours. jiayou!
Thanks!
Hi Yihui, it was great to meet you at the useR conference. Keep up the good work!
Thanks, Shentu. It’s my pleasure to know you too. Keep in touch!