title: Break X Axis in R
body: <p>I want to get a broken X-axis in my plot. In the x-axis I like to insert a broken-axis symbol <code>&lt; // &gt;</code> [starting from 2 and ended in end 8 which means 2-8 will be hidden in <code>&lt; // &gt;</code> symbol] so the other values can be emphasized. In Matlab, this task is performed by using <a href="http://www.mathworks.com/matlabcentral/fileexchange/3683-breakxaxis" rel="noreferrer">BreakXAxis</a>. In R, <strong><a href="http://cran.r-project.org/web/packages/plotrix/plotrix.pdf" rel="noreferrer">plotrix</a></strong> library helps only to plugin a break-axis symbol, that's all. </p>
  
  <pre><code>x &lt;- c(9.45, 8.78, 0.93, 0.47, 0.24, 0.12)
  y &lt;- c(10.72, 10.56, 10.35, 10.10, 9.13, 6.72)
  z &lt;- c(7.578, 7.456, 6.956, 6.712, 4.832, 3.345)
  plot(x, y, col='blue', pch=16, xlab= 'x', ylab='y, z')
  points(x, z, col='red', pch=17)
  library(plotrix)
  axis.break(1,2,style="slash") 
  </code></pre>