[R] histogram

joris meys jorismeys at gmail.com
Wed Oct 14 00:50:36 CEST 2009


On second thought,
You'll have to reorganize your data first, and then check the function
histogram() in the package lattice.

cheers


On Wed, Oct 14, 2009 at 12:43 AM, joris meys <jorismeys at gmail.com> wrote:
> see ?hist
>
> On Tue, Oct 13, 2009 at 1:06 PM, Dmitry Gospodaryov
> <gospodaryov at rambler.ru> wrote:
>> Dear R developers,How I can build a histogram from matrix:
>>
>> 0 0.5 1
>>
>> 0.25 34 43 65
>> 1 23 35 54
>> 4 22 29 42
>> 10 21 22 29
>> 20 15 17 20
>>
>> (first string is represented names of columns,
>> first column is represented names of rows)
>> where names of columns should be x-axis labels; respectively
>> to this, I want to have three groups of bars (5 bars in each group)?
>> Y values should be represented by values given in the "core" of
>> matrix. Names of the rows should be in a legend, and should
>> represent the each of 5 bars (in group) name.
>> I would also try to build filled contour, however, i can't
>> "ask" the program to consider column and rownames like
>> true values, not only like labels. So, column names should
>> be the y-values, while row names should be the x-values.
>> Values placed in the "core" of matrix should be z-values.
>>
>> With regard, Dmitry.
>>
>> ______________________________________________
>> R-help at r-project.org mailing list
>> https://stat.ethz.ch/mailman/listinfo/r-help
>> PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
>> and provide commented, minimal, self-contained, reproducible code.
>>
>




More information about the R-help mailing list