Blog Archives

Updated examples that combine Rcpp and CppBugs

October 1, 2011
By

This example is very informative in illustrating how to use CppBugs module with Rcpp to conduct fast MCMC simulation in R.

Read more »

Ra vs. compiler package

August 28, 2011
By

R seems to have two byte code compilers: the Ra add-on module (and the accompanying "jit" package) and the "compiler" package came with the default installation. I wonder how they differentiate from each other and what the strengths and weaknesses...

Read more »

Legends in ggplot2

May 22, 2011
By
Legends in ggplot2

A simple plot takes a few lines of coding:g1 <- ggplot(d, aes(birth.year))g2 <- g1 + geom_line(aes(y=alive0, linetype="Famale")) +  geom_line(aes(y=alive1, linetype="Male")) + scale_linetype_discrete(name = "")g3 <- g2 + geom_point(aes(y=...

Read more »

Legends in ggplot2

May 22, 2011
By
Legends in ggplot2

A simple plot takes a few lines of coding:g1 <- ggplot(d, aes(birth.year))g2 <- g1 + geom_line(aes(y=alive0, linetype="Famale")) +  geom_line(aes(y=alive1, linetype="Male")) + scale_linetype_discrete(name = "")g3 <- g2 + geom_point(aes(y=...

Read more »

Extension to mtable function

May 4, 2011
By

Here are some useful extension to the "mtable" function in the memisc package.

Read more »

Extension to mtable function

May 4, 2011
By

Here are some useful extension to the "mtable" function in the memisc package.

Read more »

Ask R not to create a local directory tree

March 12, 2011
By

I don't like R to create a local directory tree in my home directory because new packages will automatically be installed into that directory. The way to do this is to modify the "/usr/local/lib64/R/etc/Renviron" and mark the line "R_LIBS_USER=${R_LIBS...

Read more »

Ask R not to create a local directory tree

March 12, 2011
By

I don't like R to create a local directory tree in my home directory because new packages will automatically be installed into that directory. The way to do this is to modify the "/usr/local/lib64/R/etc/Renviron" and mark the line "R_LIBS_USER=${R_LIBS...

Read more »

Rstudio

February 28, 2011
By

Rstudio, an open source cross-platform IDE for R, seems to be really attractive. It probably will not drag me away from Emacs, but having more options is always a good thing.The only downside of it is that it automatically installs R from the...

Read more »

Rstudio

February 28, 2011
By

Rstudio, an open source cross-platform IDE for R, seems to be really attractive. It probably will not drag me away from Emacs, but having more options is always a good thing.The only downside of it is that it automatically installs R from the...

Read more »