Bogdan Tanasa
2018-Jul-15 05:34 UTC
[R] even display of unevenly spaced numbers on x/y coordinates
Dear Jeff, thank you for your prompt reply and kind help. During our previous conversation, we worked on a different topic, namely subsetting the dataframe before using ecdf() function in ggplot2. Now, i would like to know, how I could evenly space on the x axis the values (0, 0.01, 0.1, 1, 10). Thanks again, and happy weekend ;) ! -- bogdan On Sat, Jul 14, 2018 at 10:25 PM, Jeff Newmiller <jdnewmil at dcn.davis.ca.us> wrote:> Isn't this what I showed you how to do in [1]? > > [1] https://stat.ethz.ch/pipermail/r-help/2018-July/455215.html > > On July 14, 2018 10:16:36 PM PDT, Bogdan Tanasa <tanasa at 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 at 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. > > -- > Sent from my phone. Please excuse my brevity. >[[alternative HTML version deleted]]
Jeff Newmiller
2018-Jul-15 06:07 UTC
[R] even display of unevenly spaced numbers on x/y coordinates
But did you run the code? Apparently not. On July 14, 2018 10:34:32 PM PDT, Bogdan Tanasa <tanasa at gmail.com> wrote:>Dear Jeff, > >thank you for your prompt reply and kind help. > >During our previous conversation, we worked on a different topic, >namely >subsetting the dataframe before using ecdf() function in ggplot2. > >Now, i would like to know, how I could evenly space on the x axis the >values (0, 0.01, 0.1, 1, 10). Thanks again, and happy weekend ;) ! > >-- bogdan > > >On Sat, Jul 14, 2018 at 10:25 PM, Jeff Newmiller ><jdnewmil at dcn.davis.ca.us> >wrote: > >> Isn't this what I showed you how to do in [1]? >> >> [1] https://stat.ethz.ch/pipermail/r-help/2018-July/455215.html >> >> On July 14, 2018 10:16:36 PM PDT, Bogdan Tanasa <tanasa at 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 at 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. >> >> -- >> Sent from my phone. Please excuse my brevity. >>-- Sent from my phone. Please excuse my brevity.
Bogdan Tanasa
2018-Jul-15 12:22 UTC
[R] even display of unevenly spaced numbers on x/y coordinates
Hi Jeff, thank you again for your help, and for your suggestion to subset the data : DF500 <- subset( DF, LENGTH < 500 ) yes, I did run the code, and I believe that it is easier to present/defend the results, after using "subset". -- bogdan On Sat, Jul 14, 2018 at 11:07 PM, Jeff Newmiller <jdnewmil at dcn.davis.ca.us> wrote:> But did you run the code? Apparently not. > > On July 14, 2018 10:34:32 PM PDT, Bogdan Tanasa <tanasa at gmail.com> wrote: > >Dear Jeff, > > > >thank you for your prompt reply and kind help. > > > >During our previous conversation, we worked on a different topic, > >namely > >subsetting the dataframe before using ecdf() function in ggplot2. > > > >Now, i would like to know, how I could evenly space on the x axis the > >values (0, 0.01, 0.1, 1, 10). Thanks again, and happy weekend ;) ! > > > >-- bogdan > > > > > >On Sat, Jul 14, 2018 at 10:25 PM, Jeff Newmiller > ><jdnewmil at dcn.davis.ca.us> > >wrote: > > > >> Isn't this what I showed you how to do in [1]? > >> > >> [1] https://stat.ethz.ch/pipermail/r-help/2018-July/455215.html > >> > >> On July 14, 2018 10:16:36 PM PDT, Bogdan Tanasa <tanasa at 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 at 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. > >> > >> -- > >> Sent from my phone. Please excuse my brevity. > >> > > -- > Sent from my phone. Please excuse my brevity. >[[alternative HTML version deleted]]