[R] Histogram

Achim Zeileis Achim.Zeileis at wu-wien.ac.at
Wed Apr 20 18:02:37 CEST 2005


On Wed, 20 Apr 2005 17:37:04 +0200 Mag. Ferri Leberl wrote:

> Dear everybody!
> I am analysing data from an enquette. The answers are either A or B.
> How can I draw a histogram without transforming the data from
> characters to numbers? If the data are saved in a list M, hist(M[,1])
> returns:
> 
> Error in hist.default(M[, 1]) : `x' must be numeric
> Execution halted

I think you want a barplot not a histogram. ?barplot
Z

> Thank you in advance!
> 
> ______________________________________________
> R-help at stat.math.ethz.ch mailing list
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide!
> http://www.R-project.org/posting-guide.html
>




More information about the R-help mailing list