[R] A question related with resale()

From: zhijie zhang <epistat_at_gmail.com>
Date: Wed 21 Jun 2006 - 16:58:23 EST


Dearfriends,

   A question related with resale(). I have a dataset *a* with three variables *x,y,id*
 I want to do two different things:
1. rescale the combination of x and y into the new range --unit square(0,1),that is, keep the shape of original plot; 2.rescale x and y into the new range (0,1) respectively,change the shape of original plot ;
e.g. the orignial dataset
id<-c(1,2,3,4,5,6,7,8,9,10)

x<-rnorm(10)
y<-rnorm(10)
a<-data.frame(id=id,x=x,y=y)

Thanks very much!

-- 
Kind Regards,
Zhi Jie,Zhang ,PHD
Department of Epidemiology
School of Public Health
Fudan University
Tel:86-21-54237149

	[[alternative HTML version deleted]]

______________________________________________
R-help@stat.math.ethz.ch mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html
Received on Wed Jun 21 22:36:15 2006

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.1.8, at Thu 22 Jun 2006 - 00:12:02 EST.

Mailing list information is available at https://stat.ethz.ch/mailman/listinfo/r-help. Please read the posting guide before posting to the list.