Last chance! 50% off unlimited learning
Sale ends in
powered by
The function can be used to add a title to a plot surrounded by a rectangular box. This is useful for plotting several plots in narrow distances.
TitleRect(label, bg = "grey", border = 1, col = "black", xjust = 0.5, line = 2, ...)
the main title
the background color of the box.
the border color of the box
the font color of the title
the x-justification of the text. This can be c(0, 0.5, 1) for left, middle- and right alignement.
c(0, 0.5, 1)
on which MARgin line, starting at 0 counting outwards
the dots are passed to the text function, which can be used to change font and similar arguments.
text
nothing is returned
title
# NOT RUN { plot(pressure) TitleRect("pressure") # }
Run the code above in your browser using DataLab