Hi,

It's difficult to know what is going wrong from what you say below (please
include some reproducible code in the future as indicated in the posting
guide).  If you want to produce a bar chart of the numbers with the
corresponding names as labels for these numbers, you can do something like
this:

x <- rnorm(10)
y <- letters[1:10] # use the first 10 letters of the alphabet as the labels
barplot(x, names.arg = y)


HTH,

Francisco


On Wed, Mar 23, 2011 at 4:26 PM, blutack <x-jess-h-x@hotmail.co.uk> wrote:

> How do you do a bar chart of 2 vectors?
> I have one vector which has 10 numbers, and another which has 10 names.
> The numbers are the frequency of the corresponding name, but when I do a
> bar
> chart it says that there is no height. Thanks.
>
> --
> View this message in context:
> http://r.789695.n4.nabble.com/Bar-Chart-tp3399924p3399924.html
> Sent from the R help mailing list archive at Nabble.com.
>
> ______________________________________________
> 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.
>

	[[alternative HTML version deleted]]

