title: Create Side-by-Side Bar Plot
body: <p>I would like to create side-by-side bar plots based on frequencies. An R example is found at <a href="https://stackoverflow.com/questions/26916505/side-by-side-bars-in-bar-plot">Side-by-side bars in bar plot</a>  Is this possible to do in Stata?</p>
  
  <p>Suppose I have this data:</p>
  
  <pre><code>clear
  set obs 1000
  set seed 1
  gen var1 = runiform()*10
  set seed 2
  gen var2 = runiform()*10
  set seed 3
  gen var3 = runiform()*10
  
  gen var1_value = "A" if var1&lt;3
  replace var1_value = "B" if var1&gt;=3 &amp; var1&lt;=9
  replace var1_value = "C" if var1&gt;9
  
  gen var2_value = "A" if var2&lt;4
  replace var2_value = "B" if var2&gt;=4 &amp; var2&lt;=6
  replace var2_value = "C" if var2&gt;6 
  
  gen var3_value = "A" if var3&lt;1
  replace var3_value = "B" if var3&gt;=1 &amp; var3&lt;=3
  replace var3_value = "C" if var3&gt;3
  </code></pre>
  
  <p>I can use the user-written commands <code>tabplot</code> and <code>catplot</code> to plot these individually:</p>
  
  <pre><code>capture ssc install tabplot 
  tabplot var1_value 
  tabplot var2_value
  tabplot var3_value
  
  capture ssc install catplot
  catplot var1_value
  catplot var2_value
  catplot var3_value
  </code></pre>
  
  <p>However, I would like these three to be on the same plot, side-by-side by value. If possible, I would like to have many plots side-by-side for each value instead of the 3 in this example.</p>