title: Formatting axes of plots in r
body: <p>I want to plot a beta distribution in a double logarithmic plot.</p>
  
  <pre><code>x &lt;- seq(0, 1, length=1001)
  y &lt;- dbeta(x, 0.1, 0.1)
  plot(x, y, type="h", log="xy")
  </code></pre>
  
  <p>The xtics are set at</p>
  
  <pre><code>0.001
  0.005
  0.01 (without label)
  0.05
  0.1 (without label)
  0.5
  1 (without label)
  </code></pre>
  
  <p>How can I determine:</p>
  
  <ol>
  <li><p>that labels are given for the main decimal positions (1.0, 0.1, 0.01, 0.001, 0.0001,...)</p></li>
  <li><p>that tics should be drawn for 9 position between the decimal positions (for the region between 0.01 and 0.1 it would be 0.01, 0.02, 0.03,....)</p></li>
  <li><p>that the maximum y-range should be 0.5</p></li>
  </ol>
  
  <p>Thanks for your help.</p>
  
  <p>Sven</p>