Is it possible to colorize parts of the title in a plot?
x = 1:10
y = 1:10
plot(x, y, main="title (slope=1)")
In this plot I'd like to change the color of slope=1
to red.
Is it possible to colorize parts of the title in a plot?
x = 1:10
y = 1:10
plot(x, y, main="title (slope=1)")
In this plot I'd like to change the color of slope=1
to red.
A solution for
ggplot2
plots using the ggtext packageCreated on 2019-08-11 by the reprex package (v0.3.0)
This is a quite simple solution to your problem: