【发布时间】:2020-08-11 13:45:27
【问题描述】:
我对 R 图中的文字有疑问。 我的代码是
library("ggplot2")
ggplot(df, aes(x = class, y = Proportion)) +
geom_point(aes(color = class)) +
scale_color_viridis_d() +theme_minimal()+
theme(text=element_text(size=16,face = "plain"))
但是,图中的文字是斜体的。我添加了“face =”plain”, 但它没有用。 不知道是什么原因 我将不胜感激。
【问题讨论】:
-
试试
face = "bold" -
非常感谢,是的,face = "bold" 有效,但我需要常规文本。