title: logticks in plain R graphics
body: <p><a href="https://ggplot2.tidyverse.org/reference/annotation_logticks.html" rel="nofollow noreferrer">https://ggplot2.tidyverse.org/reference/annotation_logticks.html</a></p>
  <p>There is a package for logticks, but it is not for basic R graphics. Is there a ready-to-use function to easily generate the ticks (with the range as the input argument) that would be printed nicely so that they can be used with basic R graphics (the axis() command specifically)?</p>
  <p>For example, between 10 and 100, I may want to have major ticks at 10, 20, ..., 90, 100, and minor ticks at 11, ..., 19, 21, ...,29, ..., 91, ..., 99.</p>
  <p>Between 100 and 1000, the ticks will be just the above ones multiple by 10. For other ranges, the ticks can be similarly defined.</p>
  <p>So if I have an input range of 15 and 150. I will have all the ticks described above that are within 15 and 150 as output.</p>
  <p>The function should be relatively flexible. For example, I may reduce the frequency of major ticks, say to keep the ones at 10, 20, 50, 100. But the minor ticks can still remain as is, plus, the additional ones like 30, 40, 60, 70, 80, 90.</p>
  <p>Another flexibility may be uses people can specify how many major ticks and minor ticks should be (but needs to be rounded so that the ticks are not an awkward place).</p>