title: Plot data in groups
body: <p>I want to plot data that can be sorted into 2 groups (Tornado and TSTM WIND). My data is like that:</p>
  
  <p><a href="https://i.stack.imgur.com/OV1c9.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/OV1c9.jpg" alt="enter image description here"></a> </p>
  
  <p>Now I want to create a simple chart with the sum of FATALITIES for each EVTYPE. So there would be one value for Tornado ( 30 in this case) and one value for TSTM WIND( 20)</p>
  
  <p>I tried this but it won`t work because I seemingly have arguments with different sizes</p>
  
  <pre><code> xcv&lt;-aggregate(E0, by = list(Fatalities), FUN = sum, na.rm = TRUE)
   plot(Fatalities)
  </code></pre>
  
  <p>Can anybody help me?</p>