Ploty images saved on external file

Two Questions:

  1. Why if gauge plot inserted in a loop [for (I in 1:8) ] does not produce the graph ?
  2. How to save the gauge image on an external file type .png or .jpg