[R] How to read 20 columns from the file
jim at bitwrit.com.au
Thu Jul 14 14:48:47 CEST 2011
On 07/14/2011 10:35 PM, Jim Lemon wrote:
> On 07/13/2011 10:08 PM, Kishorenalluri wrote:
>> Hi Jim,
>> Saving is not a problem. I wanted to load/read the columns from the
>> file followed by plotting the area plot using ggplot2.
>> I am a basic user. I am trying to reproduce the plot similar to the
>> given here.
> Hi Kishorenalluri,
> How about this?
> # download the data file from NOAA
> # http://www.cpc.ncep.noaa.gov/data/indices/wksst.for
> # make the columns match the header row with a global
> # replace of "-" with " -" (add a space)
> # then this seems to reproduce the plot you indicated
> main="Sea surface anomalies from NOAA",
> xlab="Year",ylab="Temperature anomaly")
Oops, forgot to include the line reading in the data file:
More information about the R-help