search for: reproducableex

Displaying 2 results from an estimated 2 matches for "reproducableex".

Did you mean: reproducable
2017 Dec 04
3
problem with the behaviour of dashed lines in R plots
...y generated" data). Also, changing the plot(...,type="l") to abline(regressor,lty=2,...) helps and draw a pure dashed line but it is impossible to force it to stay in the bounds of the data. Changing to line instead shows the same problem as mentioned here in the MWE. pdf("reproducableex.pdf") df1<-data.frame(B=runif(20,1.4,1.6),A=runif(20,-19.5,-9.8)) regressor<-lm(A~B,data = df1) plot(df1$B,predict(regressor,df1),type="l", col="black", mgp=c(2,0.5,0),cex.lab=1.6, lwd=2, lty=2,xlim=range(c(1.2,1.7)),ylim=rev(range(c(-19,-8)))) par(new = TRUE) plot(...
2017 Dec 04
0
problem with the behaviour of dashed lines in R plots
..., changing the plot(...,type="l") to abline(regressor,lty=2,...) helps > and draw a pure dashed line but it is impossible to force it to stay in the > bounds of the data. > Changing to line instead shows the same problem as mentioned here in the > MWE. > > > pdf("reproducableex.pdf") > df1<-data.frame(B=runif(20,1.4,1.6),A=runif(20,-19.5,-9.8)) > regressor<-lm(A~B,data = df1) > plot(df1$B,predict(regressor,df1),type="l", col="black", > mgp=c(2,0.5,0),cex.lab=1.6, lwd=2, > lty=2,xlim=range(c(1.2,1.7)),ylim=rev(range(c(-19,-8)))...