Rolf Eilert Johansen
Rolf Eilert Johansen

Reputation: 43

What does the unusual expression "~~~" in R code do?

Like in this code, what does "~~~" (three tildes) mean?

plot.ts(x1, ylim=c(-10,10), main=expression(omega==6/100~~~A^2==13))

Upvotes: 3

Views: 134

Answers (1)

G. Grothendieck
G. Grothendieck

Reputation: 269481

From ?plotmath

x ~~ y put extra space between x and y

Three tilde characters puts even more space.

plot(0, main = a * b ~ c ~~ d ~~~ e, cex.main = 3)

screenshot

Upvotes: 5

Related Questions