I'm making a piechart using ggplot2 and it looks fine in RStudio:
data <- data.frame(
continent=c("Europe", "N. America", "S. America", "Asia", "Africa", "Australia"),
value=c(80, 30, 20, 110, 40, 5)
)
library(ggplot2)
ggplot(data, aes(x="", y=value, fill=continent)) +
geom_bar(stat="identity", width=1, color="black")+
coord_polar("y") +
theme_void()
ggsave("piechart.png")
However, when I open the saved picture, you can see that the center has an unwanted spike from the green segment:

I feel this looks rather bad. Can I remove it somehow? Maybe change the line thickness so this is not as pronounced?


{ggplot2}expert. Is it due to the size you use to save the plot? Have you played around around with the size arguments inggsave? (On my machine) it defaults to> ggsave("piechart.png") Saving 8.85 x 4.46 in image.