title: Vertical profile in r plot()
body: <p>I am building a vertical profile plot of water columns. My issue is that the dots are connected on the x observations, and not the y observations. Under ggplot, I know geom_path can do this, but I can't use ggplot as I want to add several x axis. Therefore I am using plot().
  So here is what I tried:</p>
  
  <pre><code>Storfjorden &lt;- read.delim("C:/Users/carvi/Desktop/Storfjorden.txt")
  smooF=smooth.spline(Storfjorden$Fluorescence,Storfjorden$Depth,spar=0.50)
  plot(Storfjorden$Fluorescence,Storfjorden$Depth,ylim=c(80,0),type="n")
  lines(smooF)
  </code></pre>
  
  <p><a href="http://i.stack.imgur.com/Oly1b.png" rel="nofollow">Resulting plot</a></p>
  
  <p>As you see, the dots are connected through x observations. But to observe a vertical profile, I would like to see them connected through y observations. I tried ordering them by depth (using order()) and it didn't affect the result. Anyone has a clue? </p>
  
  <p>If, as an alternative, someone would have an idea how to plot different lines with different axis on a single plot (Temperature, salinity, fluorescence), then I may use geom_path (). Thank you!</p>
  
  <p>**An emerging question I have that you may answer, is there a way in ggplot to make a geom_smooth(), but with the observations connected in order they appear instead of x axis? </p>
  
  <pre><code>ggplot(melteddf,aes(y=Depth,x=value))+geom_path()+facet_wrap
  +(~variable,nrow=1,scales="free‌​_x")+scale_y_reverse‌​()
  +geom_smooth(span=‌​0.5,se=FALSE) 
  </code></pre>
  
  <p>I tried using smooth.spline, but didn't recognize the object in geom_path. Thanks! </p>