[R] Histogram
Ryota Suzuki
ryota.suzuki at is.titech.ac.jp
Tue Nov 18 16:47:35 CET 2003
Arend P. van der Veen wrote:
> Hi,
>
> I have what should be a simple question. I would like to generate a
> histogram of
>
> x <- c("a","b","c","b","c","c")
>
> where the first bar to be labeled 'c' with height 3, second bar to be
> labeled 'b' with height 2 and third bar to be labeled 'a' with height 1.
Maybe the following would help you:
x <- c("a","b","c","b","c","c")
x.fac <- factor(x)
plot(x.fac)
Best Regards,
Ryota Suzuki
>
> This should be an easy task in R but I think I am missing something?
>
> Thanks,
> Arend van der Veen
>
> ______________________________________________
> R-help at stat.math.ethz.ch mailing list
> https://www.stat.math.ethz.ch/mailman/listinfo/r-help
>
More information about the R-help
mailing list