From rg98@nyu.edu Sat May 22 11:25:19 2004
Return-Path: <rg98@nyu.edu>
Received: from cs.nyu.edu (cs.nyu.edu [128.122.80.78])
	by griffin.cs.nyu.edu (8.12.10+Sun/8.12.10) with ESMTP id i4MFPIgi028527
	for <shasha@griffin.cs.nyu.edu>; Sat, 22 May 2004 11:25:18 -0400 (EDT)
Received: from mx2.nyu.edu (MX2.NYU.EDU [128.122.109.22])
	by cs.nyu.edu (8.12.11/8.12.11) with ESMTP id i4MFPIAp005808
	for <shasha@cs.nyu.edu>; Sat, 22 May 2004 11:25:18 -0400 (EDT)
Received: from homemail.nyu.edu (H2.HOME.NYU.EDU [128.122.108.42])
	by mx2.nyu.edu (8.12.10/8.12.10) with ESMTP id i4MFPCb0017645
	for <shasha@cs.nyu.edu>; Sat, 22 May 2004 11:25:12 -0400 (EDT)
Received: from [151.205.112.169] by mail.nyu.edu (mshttpd); Sat, 22 May
 2004 11:25:12 -0400
From: Rodrigo Gutierrez <rg98@nyu.edu>
To: Dennis Shasha <shasha@cs.nyu.edu>
Message-ID: <7dbf917d8505.7d85057dbf91@homemail.nyu.edu>
Date: Sat, 22 May 2004 11:25:12 -0400
X-Mailer: iPlanet Messenger Express 5.2 HotFix 1.15 (built Apr 28 2003)
MIME-Version: 1.0
Content-Language: en
Subject: Re: R help
X-Accept-Language: en
Priority: normal
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: 7bit
X-Scanned-By: MIMEDefang 2.39
Content-Length: 578
Status: R

x <- c(1,2,3,4,5) #assign vector to X
y <- c(1,2,3,4,5) 
postscript("file.ps")
plot(x,y)
dev.off()
quit()

?plot #help page of the plot function
?par  #controls plotting 


----- Original Message -----
From: Dennis Shasha <shasha@cs.nyu.edu>
Date: Saturday, May 22, 2004 8:25 am
Subject: R help

> Dear Rodrigo,
> I have some data that I want to scatter plot.
> At the end I want a ps, pdf or jpg file of the plot.
> R looks like one way to do this, but I don't know how
> to save the output in one of these formats.
> Could you give me a small example.
> Thanks,
> Dennis
> 



