Thank you, I've tried but I see only some appear in the chart in wrong segments. Could you help me to solve this how ?
My code is as this.
plot_a <- ggplot(data, aes(x = "", y = Proportion, fill = Taxa)) +
geom_bar(width = 1, stat = "identity") +
coord_polar(theta = "y") + # Convert to polar coordinate system
scale_fill_manual(values = genus_colors) +
theme_void() + # Remove background and gridlines
theme(legend.position = "bottom") + # Move legend to bottom
guides(fill = guide_legend(title = "Taxa")) + # Customize legend title
labs(title = "A") + # Add title
geom_label_repel(aes(label = Taxa),
show.legend = FALSE,
box.padding = 0.001,
point.padding = 0.001,
point.size = 1, #
min.segment.length = 0.001,
angle = 45) # Rotate labels if necessary