[R] Forcing hist()

Par Leijonhufvud par at hunter-gatherer.org
Wed Sep 14 20:17:59 CEST 2005


I'm trying to create histogram (using hist()) that fullfill the following
criteria:

        * data is on a ordinal scale (1, 2, 3, 4, 5)
        * I want bars centered over the number on the x-axis
        * I want 5 bars of equal width

I have tried various versions of the hist() command, with no luck. what
am I missing?

/Par

-- 
Par Leijonhufvud                               par at hunter-gatherer.org
If you're not part of the solution, be part of the problem!




More information about the R-help mailing list