[R] fitting a line to a logaritmic plot

John Kane jrkrideau at yahoo.ca
Thu Nov 22 16:01:05 CET 2007


Could you calculate the log values of the two
sections, fit the line, and use lines() to draw them?


--- Joren Heit <jorenheit at gmail.com> wrote:

> Hi,
> 
> I have processed measurements of a rough surface to
> a heigh-height
> correlation plot. What the meaning of this exactly
> is, is not important.
> Only that it is a plot that had two (almost ) linear
> parts when plotted on a
> logaritmic scale. In this plot, I want to draw the
> best fitting lines for
> these linear parts but I just can't get it done. It
> is easy when the scales
> are linear but as you might have imagined, the
> scales being logarithmic
> don't add to the simplicity of my problem.
> Thanks in advance!
> 
> Joren
> 
> 	[[alternative HTML version deleted]]
> 
> ______________________________________________
> R-help at 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.
>



More information about the R-help mailing list