title: GGPLOT2: how to plot specific selections inthe ggplot() script
body: <p>This is a peak into a large dataset named <code>P</code>, where there are 10 concessionaries (<code>CS</code>) that have different shops (<code>SHP</code>) with several numeric values. The dataset lists them ordered by week (<code>WK</code>) 2 tm 52. It creates a large file. A peak into just the 6 first rows:</p>
  
  <pre><code>WK,MND,CS,SHP,RevCY,RevLY,TCY,TLY,ACY,ALY
  =========================================
  2,JAN,AAA,AAA Shop 1,16834,16686,1837,1983,2853,3002 
  
  2,JAN,AAA,AAA Shop 2,95919,114696,9742,11813,20521,24673
  
  2,JAN,BBB, BBB shop 1,93428,92212,7647,7857,18436,17984
  
  2,JAN,BBB, BBB Shop 2,30600,35831,2748,3063,5579,6408
  
  2,JAN,CCC, CCC Shop 1, 65229,78761,6074,7172,13852,16706
  
  2,JAN,CCC, CCC Shop 2,465,754,73,118,92,162
  </code></pre>
  
  <p>I have difficulties plotting just the values that concern fi <code>SHP==AAA</code>.</p>
  
  <pre><code>p &lt;- ggplot(P, aes(WK, RevCY)) + geom_bar(stat="identity")
  </code></pre>
  
  <p>This is plotting all shops and all <code>CS</code>. So the underlying question is to understand how I can plot only the shops (<code>SHP</code>) from <code>CS=AAA</code>. Let's say with the weeks (<code>WK</code>) on the x-axis and <code>RevCY</code> on the y-axis in the <code>ggplot() + geom_bar(stat="identity")</code> code. </p>
  
  <p>Is this the right direction?:</p>
  
  <pre><code>p &lt;- ggplot(P[P$CS=="AAA"], aes(WK, RevCY)) + geom_bar(stat="identity")
  </code></pre>
  
  <p>So without creating all kinds of subsets and straight into the <code>ggplot()</code> code.
  Hope my question is clear. </p>