I would like to create a histogram that charts the continuous values of a particular variable. Most of the observations range from 2 to 5. I would like to have the main bins with a width of 1 and range from 0 to 7. However, I would also like two bookend bins that cover 0 to min(variable) and 7 to max(variable). When I try to do this, I always get errors with the way I use bins, or if I try to use the discrete() or cut() options with addplot().
Here is a data example of the variable:
How can I achieve this in an effective manner?
Thank you in advance!
Here is a data example of the variable:
Code:
* Example generated by -dataex-. For more info, type help dataex clear input float logA 3.595926 1.4829882 2.418526 2.232657 2.2168064 9.851233 1.9928473 2.0715392 2.878051 3.741612 2.5099146 3.546768 2.815486 1.762309 2.36012 30.12 1.93512 3.0619204 end
How can I achieve this in an effective manner?
Thank you in advance!
Comment