[pstricks] PSTricks Digest, Vol 119, Issue 4 and an other question
Herbert Voss
Herbert.Voss at FU-Berlin.DE
Wed Dec 12 23:06:41 CET 2012
Am 12.12.2012 11:47, schrieb Cyrille Piatecki:
> I have an other question. Pst-fit is a nice piece of work but usualy
> when we have estimate we use to print the student ration under the
> estimated value. Could you do it at least for the linear regression. You
> could also add the smoothing (exponential...) to the package and the
> plot of the residual...
Cyrille,
I do not know if I really understand. Do you mean the coordinates
of the plotted equation? It can be set by EqPos=3 2
\documentclass{article}
\usepackage{pst-fit}
\begin{filecontents}{linear.dat}
1 4
2 6
3 8
4 10
5 12
6 14
7 16
8 18
9 20
10 22
\end{filecontents}
\begin{document}
\psset{xAxisLabel=x, %Setup for psgraph env
yAxisLabel=y,
xAxisLabelPos=,
yAxisLabelPos=,
lly=-1cm,llx=-1cm}
\readdata{\Linear}{linear.dat}
\begin{psgraph}[arrows=->,Dy=2](0,0)(0,0)(10,22){4.5in}{4.5in}
\listplot[decimals=2,EqPos=3 2,plotstyle=GLLSR,linestyle=dashed]{\Linear}
\listplot[plotstyle=dots,linecolor=red,dotscale=2,dotstyle=x]{\Linear}
\end{psgraph}
\end{document}
Herbert
More information about the PSTricks
mailing list