trainx: a dataframe or matrix contains columns of predictor variables.
trainy: a vector of response, must have length equal to the number of rows in trainx.
longlatpredx: a dataframe contains longitude and latitude of point locations (i.e., the centres of grids) to be predicted.
predx: a dataframe or matrix contains columns of predictive variables for the grids to be predicted.
mtry: a function of number of remaining predictor variables to use as the mtry parameter in the randomForest call.
ntree: number of trees to grow. This should not be set to too small a number, to ensure that every input row gets predicted at least a few times. By default, 500 is used.
...: other arguments passed on to randomForest.
Returns
A dataframe of longitude, latitude and predictions.