在绘制的图形中添加文字标记
plot + geom_text(data=, aes(x=, y=, label = ), fontface=2)
x=
,y
: 文字标记的横纵坐标
label=
: 文字标记的内容
fontface=2
: 字体加粗;1
为正常体,3
为斜体;4
为加粗斜体
plot + geom_text(data=, aes(x=, y=, label = ), fontface=2)
x=
,y
: 文字标记的横纵坐标
label=
: 文字标记的内容
fontface=2
: 字体加粗;1
为正常体,3
为斜体;4
为加粗斜体
本文标题:ggplot2: 在图中添加文字标记
本文链接:https://www.haomeiwen.com/subject/cvzxgltx.html
网友评论