\documentclass{article}
% translate with >> pdflatex -shell-escape <file>

% This file is used as unit test for pgfplots, copyright by Christian Feuersaenger.
% 
% See
%   http://pgfplots.sourceforge.net/pgfplots.pdf
% for pgfplots.
%
% Any required input files (for <plot table> or <plot file> or the table package) can be downloaded
% at
% http://www.ctan.org/tex-archive/graphics/pgf/contrib/pgfplots/doc/latex/
% and
% http://www.ctan.org/tex-archive/graphics/pgf/contrib/pgfplots/doc/latex/plotdata/

\usepackage{pgfplots,pgfplotstable}
\pgfplotsset{compat=newest}

\pagestyle{empty}

\begin{document}
\pgfplotstableset{
	alias/LmaxXX/.initial=Lmax,
	alias/{L/m=ax}/.initial=Lmax}
\begin{tikzpicture}
	\begin{loglogaxis}[table/x=G,table/y={L/m=ax},]
	\addplot+[scatter,scatter src={ln(1e-8+\thisrow{L/m=ax})}] table {plotdata/pgfplotstest_plot};
	\addplot[red]
		table [y={create col/linear regression={y={L/m=ax},variance list={1000,1000,1000}}}]
		{plotdata/pgfplotstest_plot};
	\end{loglogaxis}
\end{tikzpicture}
\end{document}
