title: minor.tick() position in R
body: <p>I've extensively searched for a solution without luck. I'd like to plot functions in the usual way (axes cross at (0,0)) using the default R plotting facilities. 
  Setting the axes position to 0 as in the example below solve partially the problem. However when adding minor ticks the default position is retained resulting in the weird plot below.  </p>
  
  <pre><code>plot.new() 
  x &lt;- seq(-10,10, 0.1)
  f &lt;- ((x+2)*(x-5))/((x-3)*(x+1))
  plot.window(xlim=c(-10,10), ylim=c(-30,30))
  axis(side=1, at=seq(-10,10,2), pos=0, las=0)
  axis(2) 
  
  library(Hmisc)
  minor.tick(nx=5, ny=10, tick.ratio=0.5)
  </code></pre>
  
  <p><a href="https://i.stack.imgur.com/dXpl3.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/dXpl3.jpg" alt="Graph of plotted data"></a></p>