title: R: Control number of histogram bins
body: <p>I am using the hist-function to analyze some data I generated. For an analysis-assay I would like to precisely control the number of histogram bins.</p>
  
  <p>I know the "break-argument" and I can see that in many cases the number of bins is in a direct relationship to the number of breaks (i.e. no_bins = no_breaks + 1).</p>
  
  <p>Due to R's algorithm this is not always the case. Is there a way to force R to output a specific number of bins?</p>
  
  <p>Let me know if I need to specify further details.</p>
  
  <p>Best and many thanks!</p>