以下为
this
@teunbrand就相关的GH问题发表评论,你可以通过添加以下内容来消除多余的空白
ggproto(
NULL, coord_radial("y", start=0, expand = FALSE),
inner_radius = c(0, 0.5)
)
你的阴谋。
library(ggplot2)
plot_data <- data.frame(
"xval" = seq(1, 100),
"yval" = seq(100, 1)
)
ggplot(plot_data, aes(x = xval, y = yval)) +
geom_col() +
theme_void() +
theme(
panel.border = element_rect(fill = NA, color = "red"),
axis.line.x = element_line(color = "green")
) +
ggproto(
NULL, coord_radial("x", start = 0, expand = FALSE),
inner_radius = c(0, 0.5)
)