R Graphics 3: 문자나 점의 크기, 그래픽모수, 플랏영역, 좌표축범위
> ##### 10. 문자나 점의 크기(cex)지정 / 디폴트: cex=1 ##### > plot(dist ~ speed, xlab ="Speed (mph)", ylab ="Stopping distance (ft)", + pch="+", cex=1, cars) > plot(dist ~ speed, xlab ="Speed (mph)", ylab ="Stopping distance (ft)", + pch="+", cars) > plot(dist ~ speed, xlab ="Speed (mph)", ylab ="Stopping distance (ft)", + pch="+", cex=2, cars) > ##### 11. par()함수를 이용한 그래픽모수 설정 ##### > plot(dist~speed, type..
2021. 6. 3.
R Graphics 2: 그래프유형, 색상, 낮은 수준의 그래프함수
> ##### 7. 그래프유형(type) 지정 ##### > x y opar plot(x, y, type = "p", main="type=p") # point > plot(x, y, type = "l", main="type=l") # line > plot(x, y, type = "b", main="type=b") # both (point + line) > plot(x, y, type = "o", main="type=o") # line이 point를 관통 (overplotted) > plot(x, y, type = "c", main="type=c") # cancel (both - point) > plot(x, y, type = "s", main="type=s") # step ft. (stair steps)..
2021. 6. 2.
R Graphics 1: plot(), attach(), with() 함수, 제목, 축 이름, 점(pch)
[R Graphics] ##### 1. cars 데이터 세트 ##### # plot을 출력하는 그래픽 장치는 여러 가지 그래픽 인수(graphical parameters)를 갖고있다. # 그래픽 인수는 그래픽 속성을 정의한 값으로, # 화면의 분할 방법, 그림 영역의 크기와 위치, 플랏 영역을 둘러싼 상자의 모양, 마진, # 좌표 영역에 데이터가 표시되는 형태, 선의 종류, 문자나 글자의 크기 및 색상 등의 설정값이다. > head(cars) # 자동차 속도(mph)에 따른 제동거리(ft)를 측정한 데이터 세트 speed dist 1 4 2 2 4 10 3 7 4 4 7 22 5 8 16 6 9 10 > ?cars # cars에 대한 가이드 > help(cars) # 위와 동일 > ##### 2. 산점도..
2021. 6. 1.