Hello,

I wanted to know how to plot a histogram using a vector of frequencies
rather than the data vector as a whole. So I have two vectors:  a vector of
labels V1= c("A","B","C","D") and vector B which is a vector of frequencies
of A, B, C and D respectively  V2=c(20,50,60,30). I wanted to plot a
histogram of the labels using the frequencies. I could not figure out a way
to do this using the 'hist' function which takes only the full data vector
as input. Could you please help me with this?

Thank you,
Suman

        [[alternative HTML version deleted]]

______________________________________________
R-help@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
and provide commented, minimal, self-contained, reproducible code.

Reply via email to