最近我用ggplot2制作了一个散点图,原本由于计算原因,原始矩阵数据中有若干缺失值。经过论坛中的同志帮忙已经成功替换成有效值。但是绘图时仍然提示有缺失值项目被删除,虽然图像是出来了。没有特殊值毕竟不算完美,不过出错提示我又无法完全领会,只好全部摘录于此,请有经验的同志们帮忙掌掌眼。谢谢各位。
geom_smooth: method="auto" and size of largest group is <1000, so using loess. Use 'method = x' to change the smoothing method.
Error in predLoess(y, x, newx, s, weights, pars$robust, pars$span, pars$degree, :
NA/NaN/Inf in foreign function call (arg 5)
In addition: Warning messages:
1: Removed 8 rows containing missing values (stat_smooth).
2: In simpleLoess(y, x, w, span, degree, parametric, drop.square, normalize, :
at 1.005
3: In simpleLoess(y, x, w, span, degree, parametric, drop.square, normalize, :
radius 2.5e-005
4: In simpleLoess(y, x, w, span, degree, parametric, drop.square, normalize, :
all data on boundary of neighborhood. make span bigger
5: In simpleLoess(y, x, w, span, degree, parametric, drop.square, normalize, :
pseudoinverse used at 1.005
6: In simpleLoess(y, x, w, span, degree, parametric, drop.square, normalize, :
neighborhood radius 0.005
7: In simpleLoess(y, x, w, span, degree, parametric, drop.square, normalize, :
reciprocal condition number 0.058471
8: In simpleLoess(y, x, w, span, degree, parametric, drop.square, normalize, :
zero-width neighborhood. make span bigger
Warning message:
Removed 8 rows containing missing values (geom_point).
需要说明的是在程序中,我制作散点图使用了smooth参数,如果不使用仍然会删去所谓“含有缺失值”的项目,但是提示十分简单,没有加smooth参数这般细致。