title: Q: Creating a combined plot based on a ts object
body: <p>R beginner here. </p>
  
  <p>I have created a dataframe (called combined_ts2) based on a dataset I was given.<a href="https://i.stack.imgur.com/zEp1d.png" rel="nofollow noreferrer">See this link for the dataframe.</a>
  Based on the dataframe a made <a href="https://i.stack.imgur.com/yB3Gh.png" rel="nofollow noreferrer">this</a> ts object (find code at bottom of post). </p>
  
  <p>I am supposed to make a plot based on the TS object. I'm thinking this can be achieved with a <code>ts.plot</code> function, but I can't figure out how to use this function.</p>
  
  <p>The result I want is to get a bar graph for capacity and a line graph for fixtures. Does anyone know how to achieve this, and if I can actually achieve this from a ts object?</p>
  
  <p><strong>dput for dataframe</strong></p>
  
  <p><code>structure(list(week = c(26, 28, 29, 30, 31, 32, 33, 34, 35, 36, 
  37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48), capacity = c(45000L, 
  39000L, 495500L, 855300L, 1318300L, 1301885L, 8211550L, 18515400L, 
  32282950L, 31568400L, 35410200L, 29867500L, 34809050L, 36420050L, 
  33960520L, 33987550L, 33465500L, 24599000L, 11597000L, 4553000L, 
  1375000L, 545000L), fixtures = c(2L, 4L, 12L, 13L, 18L, 29L, 
  161L, 338L, 393L, 405L, 439L, 386L, 442L, 406L, 413L, 421L, 326L, 
  180L, 84L, 23L, 6L, 3L)), class = c("tbl_df", "tbl", "data.frame"
  ), row.names = c(NA, -22L))</code></p>
  
  <p><strong>Time series code</strong></p>
  
  <p><code>weekly_timeseries &lt;- ts(combined_ts2, start=c(2019,26), frequency = 52)</code></p>