Guest User

Untitled

a guest
Jul 21st, 2018
86
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.28 KB | None | 0 0
  1. log_tick_marks <- function(min,max)
  2. {
  3. nsplit <- abs(round(log10(max-min)))
  4. i <- 0
  5. nurange <- c()
  6. while(i<=nsplit) {
  7. nurange <- c(nurange,sapply(1:10,function(x) x*(10^i)))
  8. i <- i+1;
  9. }
  10. nurange
  11. }
  12.  
  13. axis(2,log_tick_marks(1,100000),FALSE,TRUE,NA,NA)
Add Comment
Please, Sign In to add comment