Displaying 2 results from an estimated 2 matches for "14.49687".
2017 Dec 04
0
problem with the behaviour of dashed lines in R plots
Hi,
It's because you are plotting a line between each of the points in
your data frame, and they are very close together:
> cbind(df1$B,predict(regressor,df1))
[,1] [,2]
1 1.410832 -13.96466
2 1.589383 -15.21169
3 1.446662 -14.21491
4 1.488665 -14.50826
5 1.487035 -14.49687
6 1.497347 -14.56890
7 1.458070 -14.29458
8 1.568134 -15.06328
9 1.543364 -14.89029
10 1.513473
2017 Dec 04
3
problem with the behaviour of dashed lines in R plots
dear R users,
I am performing a linear regression with lm, and I would like to plot
the regressor in dashed lines. I know that the lty=2 option is the way
out, but it has a very strange behaviour: the line starts dashed but
then the spaces between each dash becomes very tiny and so the line
become somehow continuous for the human eye. Do you know how to fix that
problem, in order to have a