나는 다음과 같은 화살에 레이블을 얻으려고합니다 :레이블에 표현식 (cos (alpha))을 얻는 방법은 무엇입니까?
|| x || cos (alpha)
하지만 작동하지 않는 것처럼 보입니다.
문제없이 ||x||
을 쓸 수 있으며 문제없이 cos (알파)을 쓸 수 있지만 한 문장으로 가져 오는 방법을 모르겠습니다.
아이디어가 있으십니까?
library(plotrix)
library(shape)
xlim <- c(-2, 6)
ylim <- c(-2, 6)
plot(0, type = "n", xlim = xlim, ylim = ylim,asp=1)
Arrows(1,1,5,1)
boxed.labels(3,1,labels="||x|| cos (a)",border=NA,xpad=1,ypad=1)
Arrows(1,2,5,2)
boxed.labels(3,2,labels=expression(cos (alpha)),border=NA,xpad=1,ypad=1)
감사합니다! 완벽하게 작동합니다! – Martin