I want to set a title with mathematical symbol. In detail I want to write, that k is an element of [1;12]. I dont know how to do it.
My approach is the following one:
plot(1:10, main = expression(k %in% w))
But I can't reach to remove the w by [1;12].
Maybe someone can help me
You could hard code the title like this:
Or say you want the
1and12to come from values in a variable. You can usebquoteas in these examples that I made up: