I wonder how to put a check mark symbol in parentheses i.e., (symbol(("\326"))
) next to the main text of an R plot's main
argument?
plot(1:10, main = paste("bbb", bquote(symbol(("\326")))), col.main = 2)
I wonder how to put a check mark symbol in parentheses i.e., (symbol(("\326"))
) next to the main text of an R plot's main
argument?
plot(1:10, main = paste("bbb", bquote(symbol(("\326")))), col.main = 2)
We don't need paste
with bquote
. When we use paste
with bquote
, it is converting it to literal strings and the evaluation is not happening. Instead, pass the string "bbb" inside the bquote
and use connectors (~
) to add a space
plot(1:10, main = bquote("bbb"~symbol(("\326"))), col.main = 2)
Another option if we need paste
is expression
plot(1:10, main = expression(paste("bbb ", symbol(("\326")))), col.main = 2)