GuangchuangYu / ggplotify

ggplot everything
https://cran.r-project.org/package=ggplotify/vignettes/ggplotify.html
104 stars 11 forks source link

Unable to convert base plots obtained from package flowFP #3

Closed epgui closed 5 years ago

epgui commented 6 years ago

Hello,

I am trying to convert flowFP base plots into grobs or ggplot objects, but am running into the following error:

Error in UseMethod("as.grob") : 
  no applicable method for 'as.grob' applied to an object of class "NULL"

I'm not even sure if this is a ggplotify issue per se (and I apologize if it is not), but currently I am trying to fit multiple types of flowFP plots on a grid or layout in an rmarkdown/knitr document with PDF output, and I appear to have reached an impasse (the more obvious layout() and par() simply do not work with knitr apparently).

GuangchuangYu commented 6 years ago

reproducible example pls.