Skip to content

multi variate plot with string data

3 messages · frenchcr

#
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?
#
is there something wrong with the way i asked the question
frenchcr wrote:

  
    
#
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: