Showing posts with label R. Show all posts
Showing posts with label R. Show all posts

Wednesday, April 18, 2012

rpy2 for Ubuntu

# 1. install all dependence packages
 
sudo apt-get build-dep r-base
 
# 2. Install R with shlib 
 
        make distclean
        ./configure --enable-R-shlib
        make
        make install 
 
# 3. install rpy2 
 
   sudo easy_install rpy2

Thursday, April 12, 2012

R install ubuntu

INSTALLATION

To obtain the latest R packages, add an entry like

  deb http://cran.cnr.Berkeley.edu/bin/linux/ubuntu lucid/

   sudo apt-get update
   sudo apt-get install r-base
 
public key trouble

sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys <KEY NUMBER>

sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 51716619E084DAB9

Monday, August 1, 2011

Barplot - R

b
      [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [,9] [,10]
Len     10   20   30   40   50   60   70   80   90   100
freq1   58   67   74   78   80   78   74   67   58    48
barplot(b,col=c("darkblue","red","green"),legend = rownames(b))