title: Plotting several Histograms in R
body: <p>I'm trying to plot several histograms in R grouping by state (UF in Brazil) because there are 27 states.</p>
  <pre><code>UFs &lt;- unique(ENEM$SG_UF_RESIDENCIA)
  View(UFs)
  
  for(i in UFs){
    hist(ENEM$NU_NOTA_MT, main = &quot;Histograma Nota Matemática ENEM 2017 - 2019&quot;, 
         xlab = paste(&quot;UF: &quot;, i), ylab = &quot;Frequência&quot;, col = &quot;#224e69&quot;)
  }
  </code></pre>
  <p>But when I try to run this code, nothing happens. Could someone give me a hint?</p>