title: Create a filled area line plot with plotly
body: <p>I want to create a basic filled area plot with plotly using this dataset:</p>
  
  <pre><code>week&lt;-c(2,1,3)
  pts&lt;-c(10,20,30)
  wex&lt;-data.frame(week,pts)
  </code></pre>
  
  <p>The x-axis should contain the <code>week</code> which as you can see may not be in order in the dataset but MUST be in order in the x-axis of the plot. The y axis should contain the <code>pts</code>.</p>
  
  <p>For some reason I take nothing as a result but no error seems to exist.</p>
  
  <pre><code>library(plotly)
  week&lt;-c(2,1,3)
  pts&lt;-c(10,20,30)
  wex&lt;-data.frame(week,pts)
  
  wex$week &lt;- factor(wex$week, levels = wex[["week"]])
  p &lt;- plot_ly(x = ~wex$week, y = ~wex$pts,
               type = 'scatter', mode = 'lines',fill = 'tozeroy')
  
  
  p
  </code></pre>