[R] [Beginner] Issue with the barplot function
jim at bitwrit.com.au
Sat Oct 10 11:07:13 CEST 2009
On 10/10/2009 06:34 PM, tulesparo wrote:
> I am a beginner with R and I would need some help with doing the barplot I
> In fact I want to draw a barplot from my table, but the issue is that only
> the modalities with nonzero values are plotted ; the fact is that I would
> plot all the modalities, including those which have no value.
> If I'm not clear, here is an example : let X, Y and Z be three modalities
> which have respectively 2, 0 and 3 values ; my current barplot only draws X
> and Z, and I also would draw Y.
If you mean something like this:
you can get zero height bars for y like this:
> PS : Sorry if I've made mistakes, I'm French...
Ne vous inquiétez pas, mon ami, ce n'est pas votre faute.
More information about the R-help