hey lobachevsky - thanks! 

but: Error in barplot.default (matrix, col = c(&quot;yellow&quot;, &quot;purple&quot;), beside = TRUE) : 
  &#39;height&#39; must be a vector or a matrix 

what to do? :) 


    
        Gesendet:&nbsp;Dienstag, 01. Oktober 2013 um 10:42 Uhr 
        Von:&nbsp;&quot;Jim Lemon [via R]&quot; &lt;ml-node+s789695n4677341h6@n4.nabble.com&gt; 
        An:&nbsp;happyR &lt;tobi_gebetsberger@gmx.at&gt; 
        
        Betreff:&nbsp;Re: barplot - easy for experienced, difficult for me
    
    
        On 10/01/2013 05:53 PM, happyR wrote:
&gt; ...
&gt; Do you think it might have sth to do with how&amp;nbsp;my dataset is built up?
&gt;
Yes, happyR, it is definitely your dataset. I think this one is far 
superior:
spineless&lt;-matrix(c(6,3,9,5,4,6,7,1,3,8,7,6,10,4,3,7,6,11),
&nbsp; nrow=2)
slnames&lt;-c(&quot;Bug&quot;,&quot;Slug&quot;,&quot;Wasp&quot;,&quot;Tick&quot;,&quot;Nit&quot;,&quot;Worm&quot;,
&nbsp; &quot;Gnat&quot;,&quot;Midge&quot;,&quot;Fly&quot;)
barpos&lt;-barplot(spineless,col=c(&quot;yellow&quot;,&quot;purple&quot;),
&nbsp; main=&quot;Spineless pests&quot;,xlab=&quot;Critter&quot;,ylab=&quot;Peskiness&quot;,
&nbsp; beside=TRUE)
legend(7,10,c(&quot;Here&quot;,&quot;There&quot;),fill=c(&quot;yellow&quot;,&quot;purple&quot;))
library(plotrix)
staxlab(1,at=colSums(barpos)/2,labels=slnames)
Lobachevsky
______________________________________________
[hidden email]  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.


	
	
	
	
	
	
	
		If you reply to this email, your message will be added to the discussion below: 
		http://r.789695.n4.nabble.com/barplot-easy-for-experienced-difficult-for-me-tp4677251p4677341.html 
	
	
		
		To unsubscribe from barplot - easy for experienced, difficult for me, click here . 
		NAML 
	
    






--
View this message in context: http://r.789695.n4.nabble.com/barplot-easy-for-experienced-difficult-for-me-tp4677251p4677342.html
Sent from the R help mailing list archive at Nabble.com.
	[[alternative HTML version deleted]]

