title: ggsave Error in UseMethod("grid.draw") : no applicable method for 'grid.draw' applied to an object of class "c('ggsurvplot', 'ggsurv', 'list')"
body: <p>So I made a ggplot using a survifit curve.</p>
  <pre><code>Wolcurves &lt;- survfit(Surv(Days, Survival) ~ Wol, data = DCV_noPBS)
  IFB_plot &lt;- ggsurvplot(Wolcurves, data = DCV_noPBS, line = c(2, 1),pval = &quot;p-value = 0&quot;,xlab = &quot;Time in days&quot;, ylab = &quot;Proportional survival&quot;, break.time.by = 1, break.y.by = 0.2, legend.labs = c(&quot;w1118wMel-Tet&quot;, &quot;w1118wMel&quot;) 
  </code></pre>
  <p>)</p>
  <p>I came up against this error with the following code.</p>
  <pre><code>ggsave(filename = &quot;results/IFB2.pdf&quot;, plot = IFB_plot, width = 12, height = 10, dpi = 1000, units = &quot;cm&quot;)
  </code></pre>
  <p>Error in UseMethod(&quot;grid.draw&quot;) :  no applicable method for 'grid.draw' applied to an object of class &quot;c('ggsurvplot', 'ggsurv', 'list')&quot;</p>
  <p>It works fine if I don't specify the plot argument and just save default most recent plot.</p>