title: How to change the color and width of lines with par function in R
body: <p>I have a question about the par function in R.</p>
  
  <p>I want to change the color and/or width of a line in a graph with par function. (I am using par function because the gaps.plot command below does not allow "col" option to be included. The gaps.plot command is used after the synth command).</p>
  
  <p>So, I used the following command. But I noticed that the lines of the BOX are changed rather than the lines of the GRAPHS.</p>
  
  <pre><code>synth1&lt;-read.csv(file="C:\\Users\\Research\\R\\synthinR_v4.csv",header=TRUE)
  attach(synth1)
  library("Synth")
  
  dataprep.out34 &lt;- dataprep(foo = synth1, predictors = c("lncdsales", "md1", "md2","md3", "md4", "md5", "md6", "md7", "md8", "md9", "md10", "md11", "yd1", "yd2", "yd3", "yd4", "yd5", "yd6", "yd7", "yd8"), predictors.op = "mean", time.predictors.prior = -13:1, dependent = "lndigital", unit.variable = "artistalbumcode", time.variable = "release", treatment.identifier = 34, controls.identifier = c(1:33, 35:49), time.optimize.ssr = -13:1, time.plot = -13:25)
  
  synth.out34 &lt;- synth(data.prep.obj = dataprep.out34, method = "BFGS")
  
  par(lwd = 2, col="#cccccc")
  
  gaps.plot(synth.res = synth.out34, dataprep.res = dataprep.out34, Ylab = " Log Digital Sales ", Xlab = "Release", Ylim = c(-7, 7) , Main = NA)
  </code></pre>
  
  <p>Does anyone know how to fix this problem??
  Thank you in advance for your willingness to help. I greatly appreciate it!</p>