Remove colored border around ggplot
问题 I am adding ggplots to viewports . Both ggplot and viewport has the same background colour. My problem is that I have a white rectangle surrounding my ggplots and I dont seem to be able to find the option to remove it using theme . Any ideas? library(grid) library(ggplot2) Pie_chart <- ggplot(df , aes(x = "", y = prop_1, fill = rank) ) + geom_bar(stat="identity", width=2) + coord_polar("y", start = 0) + labs(x = NULL, y = NULL, fill = NULL, title = "") + theme(axis.line = element_blank(),