Skip to content
Back to formatted view

Raw Message

Message-ID: <26534782.post@talk.nabble.com>
Date: 2009-11-26T20:55:05Z
From: frenchcr
Subject: multi variate plot with string data
In-Reply-To: <26517211.post@talk.nabble.com>

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.