我在基础两个直方图中绘图:
#grid
par(mfrow=c(1,2))
#plot1
with(new_train, plot(hist(Elevation)))
#plot2
with(new_test, plot(hist(Elevation)))
数据不同!任何提示?
由于
答案 0 :(得分:3)
问题是你正在调用“情节”。
#grid
par(mfrow=c(1,2))
#plot1
with(new_train, hist(Elevation))
#plot2
with(new_test, hist(Elevation))