Hi

r-help-boun...@r-project.org napsal dne 03.12.2009 10:45:44:

> I would like to ask if there is some simple way for building a hist from 
the
> following data.
> 
> mm <-c(2,3,0,4,5,0,2,9,0)
> mmm <- matrix(mm,ncol=3, nrow=3)
> 
> x <- c(0,1.45,2.9)
> 
> in mmm there are frequencies (each column is separate histogram and each 
row
> corresponds to value of x).
> So that for the first histogram  we have 2 times interval [0,1.45] and 3
> times [1.45,2.90].

If I understand correctly basically you want barplot

barplot(mmm[,1], names.arg=x)

Regards
Petr



> 
> Thanks a lot!
> 
>    [[alternative HTML version deleted]]
> 
> ______________________________________________
> R-help@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.

______________________________________________
R-help@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.

Reply via email to