title: With knitr and LateX, how to avoid path above .png; and how to place two plots side-by-side in table
body: <p>New to LateX, I have two problems with it or knitr.  Running the code that follows the image of what is produced in PDF, there continue to appear three repetitions of the the path above the .png figure.  </p>
  
  <p>Second, the side-by-side table with a .png image in each is not appearing at all.</p>
  
  <p>I would appreciate being corrected and educated.</p>
  
  <p><a href="https://i.stack.imgur.com/lBVwZ.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/lBVwZ.png" alt="enter image description here"></a></p>
  
  <pre><code>\documentclass[11pt]{article}  
  
  \usepackage{fullpage}
  \usepackage[margin=1in]{geometry}
  
  \usepackage{color}
  
  % \usepackage{framed}
  
  \usepackage{graphicx}  % to import .png files
  \usepackage{tabularx}  % note that there is no tabular package
  \usepackage{fancyhdr}
  
  \lhead{Survey Graphics}
  \rhead{Pg. \thepage}
  \cfoot{$\copyright$ lawyeR}
  
  &lt;&lt;echo=FALSE, results="hide", warning=FALSE, message=FALSE&gt;&gt;=
  lm_blue &lt;- "#003767"
  @
  
  % \renewcommand
  % \headrule{ 
  % \color{lm_blue}
  % \begin{minipage}{1\textwidth}
  % \hrule width \hsize height 5pt 
  % \end{minipage}}%
  % 
  % \newcommand{\HRule}[1]{\hfill \rule{0.2\linewidth}{#1}} % Horiz rule at bottom of page, adjust width here
  % 
  % \renewcommand{\headrulewidth}{0.4pt}
  % \renewcommand{\footrulewidth}{0.1pt}  
  % \addtolength{\headheight}{0.5pt}  
  
  %% end preamble; begin document
  
  
  \begin{document}
  
  \graphicspath{ {C:/Users/blank/Documents/Marketing and Blog/ReproData Book Survey/Plots and images/} }
  
  \begin{figure}[h]    
  \begin{center}
  \includegraphics[width = 90mm, height = 2in]{C:/Users/blank/Documents/Marketing and Blog/ReproData Book Survey/Plots and images/Above the Law 2013 comment in plot.PNG}
  \end{center}
  \end{figure}
  
  
  % lay out figures side-by-side using table
  
  \begin{table}[h]
  \begin{tabular}{cc}
  PNG One &amp; PNG Two \\
  \includegraphics[width = 20mm]{C:/Users/blank/Documents/Marketing and Blog/ReproData Book Survey/Plots and images/MLA Comp 2014 bars separated.PNG} &amp;
  \includegraphics[width = 20mm]{C:/Users/blank/Documents/Marketing and Blog/ReproData Book Survey/Plots and images/Winstonpg19noredundantdata2.PNG}
  \end{tabular}
  \end{table}
  
  \end{document}
  </code></pre>