Hi Bogdan, There seem to be three problems. One is that if you want a logarithmic x axis you shouldn't have a zero (or a negative number) in your data. The second is that you have to ask for a logarithmic axis. The third is that you have limited your x axis to less than the range of the data in "b"::
plot(ecdf(b),xlim=c(0.1,1000),col="red",main=NA,log="x") plot(ecdf(a),col="green",add=TRUE) Jim On Sun, Jul 15, 2018 at 3:16 PM, Bogdan Tanasa <tan...@gmail.com> wrote: > Dear all, > > please would you advise on how I could make an even display of unevenly > spaced number on a graph in R. For example, considering the code below : > > BREAKS = c(0, 0.1, 1, 10, 20, 30, 40, 50, 60, 70, 80, 90, 100, 200, 300, > 400, 500) > > a <- seq(0,100,0.1) > b <- seq(0,1000,0.1) > > plot(ecdf(a), col="red", xlim=c(0,100), main=NA, breaks=BREAKS) > plot(ecdf(b), col="green", xlim=c(0,100), add=T, breaks=BREAKS) > > I would like to show on X axis (0, 0.1, 1 and 10) spaced in an equal/even > manner. > > thanks ! > > bogdan > > [[alternative HTML version deleted]] > > ______________________________________________ > R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see > https://stat.ethz.ch/mailman/listinfo/r-help > PLEASE do read the posting guide http://www.R-project.org/posting-guide.html > and provide commented, minimal, self-contained, reproducible code. ______________________________________________ R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code.