Skip to content

Commit

Permalink
plot alternative line on figure
Browse files Browse the repository at this point in the history
  • Loading branch information
andybeet committed Nov 19, 2024
1 parent 4ab0bfe commit ea8a4d2
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion R/fit_real_data.R
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,8 @@ fit_real_data <- function(dataSet,nBootSims=499,printFig=F) {
plot(dataSet$x,dataSet$y,type="l",xlab="Year",ylab="Response",
cex.lab=2.5,cex.axis=2,lwd=2)
lines(dataSet$x,rep(null$betaEst,nT),col="black",lty=2,lwd=2)
lines(dataSet$x,alt$betaEst[1]+alt$betaEst[2]*c(1:nT),col="black",lty=3,lwd=2)
# lines(dataSet$x,alt$betaEst[1]+alt$betaEst[2]*c(1:nT),col="black",lty=3,lwd=2)
lines(dataSet$x,alt$betaEst[1]+alt$betaEst[2]*dataSet$x,col="black",lty=3,lwd=2)
}


Expand Down

0 comments on commit ea8a4d2

Please sign in to comment.