I can't find a way to remove the black border of a coord_polar figure using ggplot2. Based on this post, I tried this but it doesn't work.
Any suggestions how I could remove the grid and have a uniform colour background?
library(ggplot2)
a <- seq(1,20)
b <- a^0.25
df <- as.data.frame(cbind(a,b))
gg1 = ggplot(df, aes(x = a, y = b, colour = a)) +
coord_polar(start = 1) +
geom_bar(stat = 'identity') +
theme_tufte() +
theme(plot.background=element_rect(fill="floralwhite"), panel.border =
element_blank()) +
theme(legend.position="bottom")
grid:::grid.rect(gp=gpar(fill="floralwhite", col="floralwhite"))
ggplot2:::print.ggplot(gg1, newpage=FALSE)