Answers for "text in ggplot2"

R
0

text in ggplot2

# Solution 1
sp2 + geom_text(x=3, y=30, label="Scatter plot")
# Solution 2
sp2 + annotate(geom="text", x=3, y=30, label="Scatter plot",
              color="red")
Posted by: Guest on February-19-2021

Browse Popular Code Answers by Language