I am trying to normalize some data. First I fitted a principal curve (using the LCPM package), but now I would like to apply a transformation so that the curve becomes a "straight diagonal line" on the plot. The data used to fit the curve would then be normalized by applying the same transformation to it.
It is unclear to me what you mean by "diagonal" but I suspect what you're looking for is to locate projected points onto the unfolded curve.
That is exactly what coordinates on the principal curve would give you. Sorry if I misunderstood your point, Yvonnick Noel University of Brittany, Rennes, France ______________________________________________ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code.