R中具有黄土平滑曲线且仅扩展到正值的3D散点图

问题描述

我有以下代码:

library(readxl)
library(car)
library(rgl)


input <- read_xlsx("PlotsStatenIsland.xlsx")
Elevation <- c(input$Elevation)
ComNorm <- c(input$ComNorm)
Percent <- c(input$Percent)

Income2<-structure(list(X = NROW(Elevation),Elevation,Percent,ComNorm),.Names = c("X","Elevation","Percent","ComNorm"),class = "data.frame")

scatter3d(ComNorm ~Elevation + Percent,data=Income2,fit="smooth",method="loess",df.smooth = 10,color="green",point.col="green",tickmarks="detailed",xlab="Elevation",ylab="Complaints",zlab="Percent Rise")

问题在于曲线变为负值。有办法防止这种情况吗?

这是一张图片:

enter image description here

非常感谢

解决方法

暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!

如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。

小编邮箱:dio#foxmail.com (将#修改为@)

相关问答

错误1:Request method ‘DELETE‘ not supported 错误还原:...
错误1:启动docker镜像时报错:Error response from daemon:...
错误1:private field ‘xxx‘ is never assigned 按Alt...
报错如下,通过源不能下载,最后警告pip需升级版本 Requirem...