From edd at debian.org  Mon Feb 14 19:30:48 2011
From: edd at debian.org (Dirk Eddelbuettel)
Date: Mon, 14 Feb 2011 12:30:48 -0600
Subject: [Rd] R command line and pipe using in Linux?
In-Reply-To: <AANLkTimNYYpwWJDiNxhxq+Ay-i8DmqQU=H5dLE9gxRVR@mail.gmail.com>
References: <AANLkTimNYYpwWJDiNxhxq+Ay-i8DmqQU=H5dLE9gxRVR@mail.gmail.com>
Message-ID: <19801.29912.853582.36706@max.nulle.part>


On 14 February 2011 at 17:40, Hang PHAN wrote:
| Hi,
| I have a very large data file(GB) from which I only want to extract one
| column to draw histogram. This would be done several times, so I would like
| to ask if there is anyway to plot this using R from the linux command line,
| something look like this
| 
| cut -f1 xxx.txt |RplotHist ....

Have a look at littler which was written with these uses in mind:

   http://dirk.eddelbuettel.com/code/littler.html

It includes a few examples which should get you going. Also, in
non-interactive mode, your plot device will have to a file.

Hope this helps, Dirk

-- 
Dirk Eddelbuettel | edd at debian.org | http://dirk.eddelbuettel.com



[Rd] R command line and pipe using in Linux?
Dirk Eddelbuettel