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

Reply via email to