I have the next code:
area01 <- 122.8
parea01 <- 36.1
text02 <- eval(substitute(expression("L (2510-3410 masl):\n"~a*" "*km^2*"("*s*"%)"),list(a=area01,s=parea01)))
plot(1,1)
title(text02)
I only want that the text does not appear to the right. I want everything in the center. I try too with bquote. It works, but the separation between lines it is too much and I dont want that. I let the solution witn bquote.
text02=bquote(bold(atop("L (2510-3410 masl):",.(area01)~km^2~"("~.(parea01)~"%)"),))
The problem here is the separation between lines. With expression, works good for me, but I want to center it. Any guess?
Someone help me to resolve my doubt or problem with the code