I'm trying to plot a merged plot for bonferroni p adjusted value using ggplot.
I'm running this code
p <- ggplot(stack, aes(x = factor(phenotypes), y = values))
geom_boxplot(aes(fill = factor(modules)))
theme_prism()
theme(legend.position = "none")
Everytime I run the I get the similar classic error.
Error in grid.Call(C_textBounds, as.graphicsAnnot(x$label), x$x, x$y, :
polygon edge not found
The usual problem is font not being presnt in the correct directory. But that doesn't seem to be the issue here.
Like I mentioned in the comment, the bug might be gone once you restarted Rstudio. Check if you are still getting the error and try these pages - stackoverflow ; Rstudio community page