Help with ggplot rendering in shiny app, how do I get rid of these white spaces?

Hi all, new to the community, love using R and shiny. I am stuck on this thing right here

Here is the code I am using,

  ggplot()+aes(ymin=0)+
    geom_rect(data=figData,aes(fill=category,color = category,ymax=ymax, ymin=ymin,  xmax=x1, xmin=x2), size = 2)+
    ylim(0,1) + xlim(0, 10) +
    coord_polar(theta="y", direction = -1) +
    scale_fill_manual(values=group.colors1) + 
    scale_color_manual(values=group.colors2) + 
    theme(panel.grid=element_blank()) +
    theme(axis.text=element_blank()) +
    theme(axis.ticks=element_blank()) +
    theme(axis.title.x = element_blank()) +
    theme(axis.title.y = element_blank()) +
    theme(panel.border = element_blank()) + 
    theme(legend.position = "none") +
    theme(legend.position = "none",
          panel.grid = element_line(color = "#000000"),
          axis.title = element_blank(),
          axis.text  = element_blank(),
          axis.ticks = element_blank(),
          panel.background = element_rect(fill = "#000000", color = "#000000"),
          plot.background = element_rect(fill = "#000000", color = "#000000"))

how do I get rid of those white spaces?

HI @mtsi , it would be helpful if you could share the data you used; you can share it by running:

dput(figData)

and pasting the output between a pair of triple backticks, like this:

``` r
<-- paste dput() output here
```

Hi @dromano ,

here it is

structure(list(details = c("Unkown file type", "Warnings, descripency detected", 
"\tIncluding blank lines", "\tExcluding blank lines"), <placeholder> = c(1L, 
2L, 2L, 2L), <placeholder> = c(14.29, 28.57, 28.57, 28.57), <placeholder> = c("1", 
"2", "3", "4"), fraction = c(0.142857142857143, 0.285714285714286, 
0.285714285714286, 0.285714285714286), ymax = c(0.122857142857143, 
0.408571428571429, 0.694285714285714, 0.98), ymin = c(0.02, 0.142857142857143, 
0.428571428571429, 0.714285714285714), all_ = c(4L, 4L, 4L, 4L
), x1 = c(5, 5, 5, 5), x2 = c(8, 8, 8, 8)), row.names = c(1L, 
2L, 4L, 5L), class = "data.frame")

This doesn't look like the same table you used above since it doesn't have a column called category, and <placeholder>, as in the second line:

prevents the code from being run without an error. Could you try again? And could you make sure the table you pass to the ggplot() code is same one you pass to dput()?