Message-ID: <19801.29912.853582.36706@max.nulle.part>
Date: 2011-02-14T18:30:48Z
From: Dirk Eddelbuettel
Subject: R command line and pipe using in Linux?
In-Reply-To: <AANLkTimNYYpwWJDiNxhxq+Ay-i8DmqQU=H5dLE9gxRVR@mail.gmail.com>
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