title: How to change the axis line size in ggplot2?
body: <p>I want to change the size and color of the right y axis and the top x axis of my diagramm q.
  axis.line = element_line(colour = 'black', size = 1.0) changes only my left y axis and bottom x axis. I also tried axis.line.y.right = element_line(colour = 'black', size = 1.0) but it doesn´t work.
  Do you have any ideas?</p>
  <p><img src="https://i.stack.imgur.com/EBOi6.png" alt="my plot" /></p>
  <pre><code>&gt; # additional packages
      &gt; #install.packages(&quot;ggthemes&quot;)
      &gt; 
      &gt; usePackage(&quot;data.table&quot;)
      &gt; usePackage(&quot;ggplot2&quot;)
      &gt; 
      &gt; # load packages
      &gt; library(data.table)
      &gt; library(ggplot2)
      &gt; library(ggthemes)
      &gt; 
      &gt; 
      &gt; results &lt;- fread(&quot;Thiols_Data_5.csv&quot;, header=TRUE, sep=&quot;;&quot;)
      &gt; 
      &gt; str(results)
      Classes ‘data.table’ and 'data.frame':  6 obs. of  5 variables:
       $ Yeast: chr  &quot;AWRI Ref&quot; &quot;AWRI tna&quot; &quot;ATF 1&quot; &quot;ATF 2&quot; ...
       $ SHA  : int  36 173 382 3219 686 45
       $ SHAsd: int  15 81 56 217 56 17
       $ SH   : int  387 330 4623 3265 4123 701
       $ SHsd : int  19 100 266 86 646 61
       - attr(*, &quot;.internal.selfref&quot;)=&lt;externalptr&gt; 
      &gt; 
      &gt; df &lt;- data.frame(results)
      &gt; 
      &gt; str(df)
      'data.frame':   6 obs. of  5 variables:
       $ Yeast: chr  &quot;AWRI Ref&quot; &quot;AWRI tna&quot; &quot;ATF 1&quot; &quot;ATF 2&quot; ...
       $ SHA  : int  36 173 382 3219 686 45
       $ SHAsd: int  15 81 56 217 56 17
       $ SH   : int  387 330 4623 3265 4123 701
       $ SHsd : int  19 100 266 86 646 61
      &gt; 
      &gt; 
      &gt; 
      &gt; # Manually set factor levels of 'Yeast' column to plot in a logical order.
      &gt; df$Yeast = factor(df$Yeast, 
      +                   levels=c(&quot;AWRI Ref&quot;, &quot;ATF 1&quot;, &quot;ATF 2&quot;, &quot;AWRI tna&quot;, &quot;ATF 1 tna&quot;, &quot;ATF 2 tna&quot;),
      +                   labels=c(&quot;AWRI1631\n[REF]&quot;, &quot;AWRI1631\n[ATF1]&quot;, &quot;AWRI1631\n[ATF2]&quot;, &quot;AWRI1631\n[tnaA]&quot;, &quot;AWRI1631\n[tnaA_ATF1]&quot;, &quot;AWRI1631\n[tnaA_ATF2]&quot;)) 
      &gt; 
      &gt; p= ggplot( df ,aes( Yeast, SH, fill=Yeast )) +
      +     geom_bar( stat=&quot;identity&quot;,
      +               colour=&quot;black&quot;, size=0.7, 
      +               width=0.3 
      +     ) + 
      +     scale_fill_manual(values= c(&quot;AWRI1631\n[REF]&quot;=&quot;#0073C299&quot;, &quot;AWRI1631\n[ATF1]&quot;=&quot;#EFC00099&quot;, &quot;AWRI1631\n[ATF2]&quot;=&quot;#86868699&quot;, &quot;AWRI1631\n[tnaA]&quot; =&quot;#CD534C99&quot;, &quot;AWRI1631\n[tnaA_ATF1]&quot;=&quot;#7AA6DC99&quot;, &quot;AWRI1631\n[tnaA_ATF2]&quot;=&quot;#003C6799&quot;),
      +                       labels= c(&quot;AWRI1631[REF]&quot;, &quot;AWRI1631[ATF1]&quot;, &quot;AWRI1631[ATF2]&quot;, &quot;AWRI1631[tnaA]&quot;, &quot;AWRI1631[tnaA_ATF1]&quot;, &quot;AWRI1631[tnaA_ATF2]&quot;))+ 
      +     geom_errorbar( aes(ymin=SH-SHsd, ymax=SH+SHsd), width=.1 , position = &quot;dodge&quot;, size=0.7) + 
      +     scale_y_continuous(name=&quot;concentration in ng/L\n&quot;, 
      +                        expand=c(0,0), 
      +                        limits=c(0,5000) 
      +     )+ 
      +     xlab(&quot;\nYeast&quot;)+ 
      +     theme_bw()       
      &gt; 
      &gt; #without background lines
      &gt; q=p+theme_few(base_size = 15)+ 
      +     theme(axis.line = element_line(colour = 'black', size = 1.0), 
      +           axis.text = element_text(colour = &quot;black&quot;), 
      +           axis.ticks = element_line(colour = &quot;black&quot;), 
      +           axis.ticks.length = unit(5, &quot;pt&quot;)      
      +     ) 
      &gt; 
      &gt; 
      &gt; 
      &gt; ggsave(&quot;Thiols_5.png&quot;, plot=q, width=11.5, height=6.5, dpi=400)
  </code></pre>