갈루아의 반서재

1. 텍스트 넣기

 

text(x, y, labels)

- x, y : 텍스트가 위치하는 좌표

- labels : 삽입되는 문장

- col : 텍스트 색깔

- srt : 문장의 방향 (수평으로부터 반시계방향으로 각도)

- adj : 위치조정


> plot.new()

> plot.window(xlim = c(0, 5), ylim = c(0, 10))

> axis(1)

> axis(2)

> box()

> text(1,2,"text",srt=0)

> text(2,3,"text",srt=90)

> text(3,4,"text",srt=180)

> text(4,5,"text",srt=270)

> text(3,5,"text",srt=180, adj=1)




 

2. 범례 


legend(xloc, yloc,legend = c("Exact", "Approximate"), lty = c("solid", "dotted"), xjust = 1, yjust = 1)

 - xloc, yloc : 범례 위치 좌표

xjust, yjust : 범례 위치 조정


> plot.new()

> plot.window(xlim=c(0,10),ylim=c(0,10))

> axis(1)

> axis(2)

> box()

> legend(4,8,legend=c("Exact","Approximate"),

+ lty=c("solid","dotted"))