group = letters[1:10]
response = sample(-5:5, size=10, replace=TRUE)
df <- data.frame(group,
response)
I want to make the figure like this figure wanted results to show the value of my research, but my data has both negative and positive values. I wonder how to change the y-axis to make them in the same direction. I tried to set the y-axis limits by scale_y_continuous() but it didn't work See My results. Thanks a lot for any possible solutions.
Here's my plotting code
ggplot(df) +
aes(x = group, y = response, fill = response) +
geom_col() +
scale_fill_distiller(palette = "PiYG",
direction = 1) +
theme_minimal() +
theme(legend.position = "bottom")+coord_polar()