Home > Software engineering >  Grouped plots in R
Grouped plots in R

Time:05-19

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.

I'm using this website for ggprism formatted barplot

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

  • Related