title: My own legend on qplot
body: <p>Could someone help me to add  <code>A-atype   B-btype    C-ctype</code> <em>ONLY</em> as a legend to the below qplot graph. My legend should be on the top of the graph and also it should be horizontal. Please also see below for the data and the qplot code I am using for generating the graph.</p>
  
  <p>Data:</p>
  
  <pre><code>type    name    value
  A john  47.6
  B john  55.6
  C john  57.7
  A amy   13.15
  B amy   23.1
  C amy   24.9
  A lily  14.0
  B lily  18.1
  C lily  21.9
  A sam   38.8
  B sam   44.8
  C sam   45.9
  A frank 63.6
  B frank 64.4
  C frank 64.7
  A xia   52.8
  B xia   54.1
  C xia   56.4
  A yan   53.8
  B yan   56.1
  C yan   58.6
  </code></pre>
  
  <p>Code:</p>
  
  <pre><code>qplot(type, value, geom="bar", fill=c(""),data=temp, group=name,
    facets= .~name,stat="identity")
  + theme_bw()             
  + opts(axis.title.y=theme_text(size=16,angle=90),axis.title.x=theme_text(size=16,angle=0))
  + opts(axis.text.x=theme_text(size=10))   
  + opts(axis.text.y=theme_text(size=14))    
  + opts(strip.background = theme_rect(colour = 'steelblue', fill = 'white', size = 2))  
  + opts(legend.title=theme_blank())  
  + opts(legend.position="top")
  </code></pre>
  
  <p><img src="https://i.stack.imgur.com/20zrq.png" alt="enter image description here"></p>