title: "Error: Discrete value supplied to continuous scale" but I'm using numeric variables
body: <p>I'm writing a code in R to get a plot with ggplot. In doing so, I'm running this function:</p>
  <pre><code>    BasicScatterPlotClassWrapper_b&lt;- function(sample,pivot.var,pivot.title,lab.size,pivot.dot.size,pivot.ylab,pivot.xlab,font.size.x,font.size.y,pivot.lab,variable_y,variable_x) {
     
        sample_w &lt;- sample %&gt;%
        select(pivot.var) %&gt;%
        drop_na %&gt;%
        mutate(y.calc = variable_y)  %&gt;%
        mutate(x.calc = variable_x)
  
       
      
        ## GGplot 
        gg &lt;- ggplot(sample_w, aes(x.calc,y.calc)) +
        ggtitle(pivot.title) + 
        geom_point(aes(colour= ColoursXXX$blue)) +
        scale_color_manual(values= ColoursXXX$blue) +
        geom_text_repel(aes(x.calc,y.calc, label = &quot;&quot;), size = pivot.lab ,fontface = &quot;bold&quot;) +
        xlab(pivot.xlab) +
        ylab(pivot.ylab) +
        scale_y_continuous(labels = scales::percent) +
        scale_x_continuous(labels = scales::percent) +
        theme(axis.title.y = element_text(face = &quot;bold&quot;, size = 9, color=&quot;black&quot;),
              axis.title.x = element_text(face = &quot;bold&quot;, size = 9, color=&quot;black&quot;),
              axis.text.x=element_text(size = font.size.x, face = &quot;bold&quot;,hjust= 0.5),
              axis.text.y=element_text(size = font.size.y, face = &quot;bold&quot;,hjust= 0.5),
              legend.position=&quot;none&quot;, 
              panel.background = element_rect(fill = &quot;transparent&quot;, colour = NA),
              axis.line = element_line(size = 0.2, colour = &quot;black&quot;))
  
        return(gg)
        
        
      }
  </code></pre>
  <p>If I substitute the inputs from the function with their actual value, I can get the plot. If I call the function with a specific command to export the plot in PPT, I get this error: &quot;Error: Discrete value supplied to continuous scale&quot;</p>
  <p>The inputs are the following ones:</p>
  <pre><code>openChartPPT(BasicScatterPlotClassWrapper_b(
                                             sample=DF, 
                                             pivot.var= c(&quot;COV.proj.ratio&quot;, &quot;COV.curr.ratio&quot;),
                                             pivot.title=&quot;&quot;,
                                             lab.size=3,
                                             pivot.dot.size=2,
                                             pivot.ylab=&quot;bla bla&quot;,
                                             pivot.xlab=&quot;bla bla bla&quot;, 
                                             font.size.x=7, 
                                             font.size.y=7,
                                             pivot.lab=2,
                                             variable_y = &quot;COV.proj.ratio&quot;,
                                             variable_x = &quot;COV.curr.ratio&quot;), width = 8, height = 6)
  </code></pre>
  <p>The two variables COV.proj.ratio and COV.curr.ratio are numeric.</p>
  <p>Do you have any clue about what the issue could be?</p>
  <p>Many thanks,
  R</p>