title: How to produce scatterplot of .txt file in R
body: <p>I am currently trying to produce a scatterplot of a .txt file that is structured like this in 25 rows:</p>
  
  <pre class="lang-r prettyprint-override"><code>age income weight
  
  33       63      180
  
  25       72      220 
  </code></pre>
  
  <p>however, when I try to convert it to a csv and then produce a scatterplot with the following code:</p>
  
  <pre class="lang-r prettyprint-override"><code>my_input &lt;- read.csv2('dataInput.txt', sep = '\t', header = T)
  
  plot(x = my_input$ageX, y = my_input$weightY)
  </code></pre>
  
  <p>I get an error message. I also notice that there is now a period between 'age' 'income' and 'weight', which I don't understand since I would expect to get a comma between them. the error message is as follows:</p>
  
  <blockquote>
    <p>Error in plot.window(...) : need finite 'xlim' values In addition:
    Warning messages: 1: In min(x) : no non-missing arguments to min;
    returning Inf 2: In max(x) : no non-missing arguments to max;
    returning -Inf 3: In min(x) : no non-missing arguments to min;
    returning Inf 4: In max(x) : no non-missing arguments to max;
    returning -Inf</p>
  </blockquote>
  
  <p>Any ideas on how to actually get a scatterplot of the data?</p>
  
  <p><strong>Edit:</strong> executing</p>
  
  <pre class="lang-r prettyprint-override"><code>head(my_input)
  
  age. income. weight
  1  56     63     185
  2  38     72     156
  3  28     75     178
  4  49     59     205
  5  69     65     235
  6  19     70     195
  </code></pre>
  
  <p><strong>Edit:</strong> </p>
  
  <pre class="lang-r prettyprint-override"><code>str(my_input)
  
  age.income.weight: Factor w/ 18 levels "56  63     185",..: 1 2 3 4 5 6 7 8 9 10 ...
  </code></pre>
  
  <pre class="lang-r prettyprint-override"><code>summary(my_input)
  age.income.weight
  
   56     63     185: 1     
   38     72     156: 1     
   28     75     178: 1     
   49     59     205: 1     
   69     65     235: 1     
   19     70     195: 1     
   (Other)          :19     
  </code></pre>