title: How to account for outliers in a histogram? - R/Matlab
body: <p>I am wondering if there is a way to account for <strong>outlier</strong> in a <strong>histogram</strong> plot. I want to plot the <strong>frequencies</strong> of a random variable, which is very small and distributed around zero. However, in most of the cases I am considering I also have an outlier that complicates things. Is there a way to adjust the scale of the x axis in <strong>R/Matlab</strong> so that I can capture the distribution of the random variable I am considering and also show the outlier? Because normal ways to obtain the plot result in such a scale that all values are considered to be zero, and I want to show how they are distributed around zero. So ideally I would like to have the scales around zero accounting for very small numbers and than after a gap (which does not necessarily have to be proportional to the actual distance from zero) a bin to indicate the value of the outlier. And I do not want to remove the outlier from the sample.</p>
  
  <p>Is such a thing possible in R/Matlab? Any other suggestions would be welcome. </p>
  
  <p>Edit: The problem is not in identifying the outliers and using a different color for them. The problem is in adjusting the scales on the x-axis so I can observe the distribution of the variable as well as have the outlier included in the plot.</p>