title: Vertical lines/borders in generated table is not continuous (R+Latex+Sweave+xtable)
body: <p>I am creating a report in latex using R and Sweave. The table is generated using xtable. Following is the code used to generate the table</p>
  
  <pre><code>&lt;&lt;echo=FALSE, results=tex&gt;&gt;=
  tabulatedVal &lt;- getStatTableMacro(portfolio, normalizingRow)
  createdXTable &lt;- xtable(tabulatedVal, digits = 2)
  align(createdXTable) &lt;- "l|l|c|"
  rws &lt;- seq(1, nrow(tabulatedVal), by=2)
  col &lt;- rep("\\rowcolor{blue!10}", length(rws))
  print(createdXTable, booktabs=TRUE, add.to.row=list(pos=as.list(rws), command=col),     include.rownames=FALSE, size="\\small")
  @
  </code></pre>
  
  <p>The values are generated fine but the vertical lines separating columns (as well as the borders) are not continuous.</p>
  
  <p><img src="https://i.imgur.com/VypXAxn.png" alt="color table"></p>
  
  <p>I tried to remove the colors and it seems better but still has gaps between the vertical lines/borders</p>
  
  <pre><code>&lt;&lt;echo=FALSE, results=tex&gt;&gt;=
  tabulatedVal &lt;- getStatTableMacro(portfolio, normalizingRow)
  createdXTable &lt;- xtable(tabulatedVal, digits = 2)
  align(createdXTable) &lt;- "l|l|c|"
  rws &lt;- seq(1, nrow(tabulatedVal), by=2)
  print(createdXTable, booktabs=TRUE, include.rownames=FALSE, size="\\small")
  @
  </code></pre>
  
  <p><img src="https://i.imgur.com/R6XZlhQ.png" alt="table"></p>
  
  <p>Any idea as to how to fix this</p>
  
  <p><strong>Edit:</strong> Providing a more complete example as asked</p>
  
  <pre><code>\documentclass[xcolor=table,professionalfonts,a4paper,11pt]{article}
  \usepackage[margin=1.0in]{geometry}
  \usepackage{graphicx}
  \usepackage{booktabs}
  \usepackage{multicol}
  \usepackage[skip=12pt]{caption}
  \usepackage{colortbl, xcolor}
  \usepackage{helvet}
  \usepackage[noae]{Sweave}
  
  \begin{document}
  
  &lt;&lt;echo=FALSE, results=tex&gt;&gt;=
  
  #Colored Table
  
  tabulatedVal &lt;- data.frame(Statistics =c("Annualized Return (%)", "Standard Deviation (%)", "Skewness", "Kurtosis",
                               "Sharpe Ratio", "Maximum Drawdown", "Percent of losing months",
                                "Worst Monthly Return", "Worst Yearly Return"),
                             Value =c(0.09, 6.77, 0.11, 3.18, 1.34, 5.20, 31.84, -4.09, -0.33))
  createdXTable &lt;- xtable(tabulatedVal, digits = 2)
  align(createdXTable) &lt;- "l|l|c|"
  rws &lt;- seq(1, nrow(tabulatedVal), by=2)
  col &lt;- rep("\\rowcolor{blue!10}", length(rws))
  print(createdXTable, booktabs=TRUE, add.to.row=list(pos=as.list(rws), command=col), include.rownames=FALSE, size="\\small")
  
  
  #Uncolored Table
  
  createdXTable &lt;- xtable(tabulatedVal, digits = 2)
  align(createdXTable) &lt;- "l|l|c|"
  rws &lt;- seq(1, nrow(tabulatedVal), by=2)
  print(createdXTable, booktabs=TRUE, include.rownames=FALSE, size="\\small")
  @
  
  
  \end{document}
  </code></pre>
  
  <p>The results are the same.</p>
  
  <p>Also adding the generated tex file after running Sweave</p>
  
  <pre><code>\documentclass[xcolor=table,professionalfonts,a4paper,11pt]{article}
  \usepackage[margin=1.0in]{geometry}
  \usepackage{graphicx}
  \usepackage{booktabs}
  \usepackage{multicol}
  \usepackage[skip=12pt]{caption}
  \usepackage{colortbl, xcolor}
  \usepackage{helvet}
  \usepackage[noae]{Sweave}
  
  \begin{document}
  
  % latex table generated in R 3.0.1 by xtable 1.7-1 package
  % Mon Apr 14 17:43:00 2014
  \begin{table}[ht]
  \centering
  {\small
  \begin{tabular}{|l|c|}
    \toprule
  Statistics &amp; Value \\ 
    \midrule
  Annualized Return (\%) &amp; 0.09 \\ 
     \rowcolor{blue!10}Standard Deviation (\%) &amp; 6.77 \\ 
    Skewness &amp; 0.11 \\ 
     \rowcolor{blue!10}Kurtosis &amp; 3.18 \\ 
    Sharpe Ratio &amp; 1.34 \\ 
     \rowcolor{blue!10}Maximum Drawdown &amp; 5.20 \\ 
    Percent of losing months &amp; 31.84 \\ 
     \rowcolor{blue!10}Worst Monthly Return &amp; -4.09 \\ 
    Worst Yearly Return &amp; -0.33 \\ 
     \rowcolor{blue!10} \bottomrule
  \end{tabular}
  }
  \end{table}% latex table generated in R 3.0.1 by xtable 1.7-1 package
  % Mon Apr 14 17:43:00 2014
  \begin{table}[ht]
  \centering
  {\small
  \begin{tabular}{|l|c|}
    \toprule
  Statistics &amp; Value \\ 
    \midrule
  Annualized Return (\%) &amp; 0.09 \\ 
    Standard Deviation (\%) &amp; 6.77 \\ 
    Skewness &amp; 0.11 \\ 
    Kurtosis &amp; 3.18 \\ 
    Sharpe Ratio &amp; 1.34 \\ 
    Maximum Drawdown &amp; 5.20 \\ 
    Percent of losing months &amp; 31.84 \\ 
    Worst Monthly Return &amp; -4.09 \\ 
    Worst Yearly Return &amp; -0.33 \\ 
     \bottomrule
  \end{tabular}
  }
  \end{table}
  
  \end{document}
  </code></pre>