Hi,

I'm trying to normalize data by fitting a line through the highest density
of points (in a 2D plot).
In other words, if you visualize the data as a density plot, the fit I'm
trying to achieve is the line that goes through the "crest" of the mountain.

This is similar yet different to what LOESS does. I've been using loess
before, but it does not exactly that as it takes into account all points.
Although points farther from the fit have a smaller weight, they result in
the fit being a bit off the crest.

Do you know a package or maybe even an option in loess that would allow me
achieve this?
Any advice or idea appreciated.

Emmanuel

        [[alternative HTML version deleted]]

______________________________________________
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.

Reply via email to