tmap icon indicating copy to clipboard operation
tmap copied to clipboard

How to set text alignment within plot main title

Open francisbarton opened this issue 3 years ago • 1 comments

Is there an option for this? I haven't found one.

I have title.position = c("RIGHT", "TOP") but the title text itself is left-aligned within the box, and is near the centre of the plot rather than to the right hand side. A layout option to set title text alignment would be great. Or maybe there is already a way to do this.

francisbarton avatar Jan 21 '21 14:01 francisbarton

Do you mean the main title or the legend title? In both cases, the alignment is not implemented yet. An ugly workaround is to use heading whitespace as in title = " My Title".

I am not going to this implement this soon, but if you or someone else has time to do it, please go ahead a make a pull request.

mtennekes avatar Jan 21 '21 14:01 mtennekes