markrobinsonuzh / cytofWorkflow

MIT License
14 stars 3 forks source link

load ggplot2 to fix error for 'plotDR()' function #3

Closed lmweber closed 5 years ago

lmweber commented 5 years ago

The Bioconductor build report (release version 3.9) is currently showing an error for the plotDR() function (lines 393-399) when adding a call to theme():

p1 <- plotDR(daf, "TSNE", color_by = "meta20") + 
    theme(legend.position = "none")

When I load ggplot2 manually before this, it works fine. I'm not sure if this is due to a change in ggplot2 or CATALYST, but adding library(ggplot2) at the start of the workflow seems to solve the issue.

lmweber commented 5 years ago

After merging into the RELEASE_3_9 branch, this commit also needs to be cherry-picked into master branch. (GitHub doesn't seem to allow two pull requests from the same branch, so this needs to be done manually.)