I learned this package from a r-bloggers post.
Monthly Archives: September 2014
Yahoo Boss Python API
R – coord_cartesian, bquote, expression
SVG
Finance –
R – Something about Clustering
R – Interview with Yihui Xie – Author of Knitr
R – RGL (openGL) A package to make 3D easy
Here is a paper that describes rgl package in detail. And here I will just attach some code to show how to install the package and quickly plot a few proof of concept plots in 3D and it is really a fun experience to draw the plot yourself and interact with it, rotate, flip, zoom in zoom out…etc.
> library(“rgl”)
> ?rgl.spheres
> open3d()
> spheres3d(rnorm(10), rnorm(10), rnorm(10), radius=runif(10), color=rainbow(10))
> rgl.open()
> rgl.points(rnorm(1000), rnorm(1000), rnorm(1000), color=heat.colors(1000))
If you are using Mac, you probably need to have X11 (XQuartz) pre-installed and here are the outputs from the commands above, it won’t be printed to the Plots/Viewer panel if you are using RStudio, and it will be a new window for each open3d() command.
R- Selenium As Handy As Usual
The package RSelenium is actually developed a while back. 2014-05-24. And it provides an API as easy as the API in Python. So one can use Selenium to test his/her Shiny app or do webscraping using Selenium in R!
R – Understanding how to pass arguments to functions.
Start from this stackoverflow question.
When you pass … (three dots) to a function, you it will be a named list that you can retrieve the argument value by using list(…)$argument name, also ..n (two dots followed by a integer) will retrieve the argument by order. ..2 will retrieve the second one and ..1 will retrieve the first one.
