0
如何從圖例中刪除斜槓?謝謝。使用geom_histogram從ggplot2圖例中刪除斜槓
ggplot(data, aes(y, fill = factor(x))) +
geom_histogram(colour = "black", position = 'identity') +
theme(legend.position="top", legend.title=element_blank()) +
scale_fill_manual(values = c(rgb(11,61,145, maxColorValue=255), "white", rgb(252,61,33, maxColorValue=255))) +
scale_y_continuous("Count") +
scale_x_continuous("Age") +
theme(axis.text.x = element_text(face="bold", color="#252525", size=12),
axis.text.y = element_text(face="bold", color="#252525", size=12))
這應該工作:http://stackoverflow.com/a/25294787/3283824 – beetroot