[R] multi variate plot with string data

frenchcr frenchcr at btinternet.com
Thu Nov 26 21:55:05 CET 2009



Thanks!!!!!!


this works perfectly

dat = data.frame(Aggressive = data_set$var1 , Behaviour=data_set$var2)
plot(table(dat))


...its better than a stacked boxplot as it gives also different width of
columns on the diagram...an extra layer of information.









frenchcr wrote:
> 
> 
> Ive got two columns in data_set that are strings
> 
> the first column is called "character" and has levels:
> good, bad, ugly
> 
> the second column is called "abusive" and has levels:
> aggressive, moderately aggressive, mildly aggressive
> 
> 
> I want to do a stacked boxplot that has this sort of structure: 
> 
> %aggressive                     %aggressive                    
> %aggressive
> %moderately aggressive     %moderately aggressive      %moderately
> aggressive
> %mildly aggressive             %mildly aggressive             %mildly
> aggressive
> %not agressive                 %not agressive                  %not
> agressive
> 
>        bad                                  good                              
> ugly
> 
> 
> ...with legend at the size showing which colour each of the "abusive"
> levels takes.
> 
> 
> How is it done?
> 

-- 
View this message in context: http://old.nabble.com/multi-variate-plot-with-string-data-tp26517211p26534782.html
Sent from the R help mailing list archive at Nabble.com.




More information about the R-help mailing list