title: Thousands separator on the line chart values
body: <p>I am plotting a line chart and want to show values on the line chart as well as shown below in the image. <a href="https://i.stack.imgur.com/YLQZw.png" rel="nofollow noreferrer">enter image description here</a></p>
  
  <p>and I used text function to add text above the line chart point. </p>
  
  <pre><code>if (input$dates_PandL[2] - input$dates_PandL[1] &lt;= 15) {
      axis.Date(1, at = seq(input$dates_PandL[1], input$dates_PandL[2]+31, by = "days"),format = "%Y-%m-%d")
      # draw numeric values in the plot
      text(x = df_category()[, "Date"], 
           y = df_category()[, input$category[1]],
           round(df_category()[, input$category[1]], 2), 
           cex = 1.2, pos = NULL)
  </code></pre>
  
  <p>How do I separate the values by 1000s in there?</p>