假设极坐标中有一个数据集被绘制为扇区
library(ggplot2)
library(reshape2)
data <- melt(matrix(rnorm(1000), nrow = 20))
data$type <- 1:2
data$Var1 <- data$Var1*6 - 60
ggplot(data, aes(Var1, Var2)) +
geom_tile(aes(fill = value)) +
coord_polar(theta = "x", start = pi) +
scale_x_continuous(limits = c(-180, 180)) +
facet_wrap(~type)
Run Code Online (Sandbox Code Playgroud)
它给出了下图:

如何在不完整圆圈的情况下移除绘图的底部(空白)部分?