R - This warning is displayed once every 8 hours.Call `lifecycle::last_lifecycle_warnings()` to see where thiswarning was generated.

2023. 5. 22. 19:17데이터 분석/에러

RStudio로 qplot그리려는 중 나온 에러

 

 

세션이 오래되어서 나온 에러라고 해서 껐다 켰는데 또다른 에러가 나왔다.

2번이 껐다 키는걸로 해결되었고 1이 남아있었다.

 

 

qplot이 이제 더이상 지원되지 않는다는 얘기.

 

 

검색해보니 도큐먼트에 qplot대신 ggplot의 쓰임을 늘리려 중단한다고 한다.

qplot에서 ggplot을 쓰면

 

qplot(xdata, ydata, wholedata=##) 식에서

ggplot(data=##, aes=(xdata, ydata)) 식으로 바뀐다.

 

https://search.r-project.org/CRAN/refmans/ggplot2/html/qplot.html

 

R: Quick plot

qplot {ggplot2}R Documentation Quick plot Description qplot() is now deprecated in order to encourage the users to learn ggplot() as it makes it easier to create complex graphics. Usage qplot( x, y, ..., data, facets = NULL, margins = FALSE, geom = "auto",

search.r-project.org

 

728x90