정리/코드 썸네일형 리스트형 Bitcoin 데이터로 Envelope 와 Bollinger Band 그리기 (ggplot2) library(TTR) my.EnvelopeIndicator% {c( rep(.[m], m-1), .[which(is.na(.)==F)])})%*%c(1-p,1,1+p)) } df_env ggplot2 그래프 화면 분할 코드 title: '[R] ggplot2 그래프 분할(gridExtra)' output: pdf_document: toc: yes latex_engine: xelatex html_document: number_sections: yes toc: yes mainfont: NanumGothic --- #plot 그래프 는 par로 그래프 분할 아시다 시피 R 기본 그래프인 plot으로 그릴 때는 par()를 이용해서 화면을 분할하여 그래프를 띄웁니다. #ggplot2 그래프 분할은 grid.arrange()로 그래프 분할  우리가 만들고자 하는 화면이 위와 같을 때, 다음처럼.. 이전 1 다음