![](https://img1.daumcdn.net/thumb/R750x0/?scode=mtistory2&fname=https%3A%2F%2Fblog.kakaocdn.net%2Fdn%2FbxfHH0%2FbtrXJV8R55S%2FYHKv70VYWOKKENagNfCXyk%2Fimg.png)
R | plotly | Scatter Plot - 산점도
·
R/plotly
Scatter Plot , 산점도는 두 개의 연속형(continuous) 데이터의 상관관계를 파악하기에 매우 유용한 그래프이다. plotly 패키지를 이용해 산점도를 그리기 위해선 add_trace() 또는 add_markers() 함수를 사용하면 된다. 00. 패키지 로드 및 데이터 불러오기 ## 패키지 로드 library(dplyr) library(plotly) library(RColorBrewer) ### 한글 폰트 설정 library(showtext) font_add_google("Nanum Gothic", "nanumgothic") ## 데이터 불러오기 : 크론병 데이터 df % layout(title = "weight에 따른 BMI의 변화", font=list(family ='nanumgoth..