我正在尝试增加ggplot标题中下划线的大小/宽度/厚度。我尝试使用大小,宽度和长度,但是没有运气。
这是我所做的事的一个例子。
test <- tibble(x = 1:5,
y = 1,
z = x ^ 2 + y)
ggplot(test, aes(x,z)) +
geom_point() +
labs(title = expression(paste(underline("Increasing"), " underline")))+
theme(plot.title = element_text(size = 20))
答案 0 :(得分:5)