I cannot get my ploy start with the tick label "1". Surprisingly it keeps starting from 0 regardless of the usage of the graphic parameter xlim.
I tried many different combinations of the parameters appearing in the plot instruction.
I also tried to sort the x-axis value in increasing order.
> plot(sort(data_out[,1]),sort(data_out[,2],decreasing=T),xlim=c(1,1979),ylim=c(1,35),main="Intrinsic Dimensionality of 2D Swiss Roll",font.main=2,cex.main=1.5,col.main="red",xlab="Number of Nearest-Neighbors",ylab="Dimension",type="l",lab=c(10,10,3))
How can I get the x-axis tick labels to be (a subset of) the x-axis values, that is: