plot.stAirPol.prediction: plot.stAirPol.prediction

Description Usage Arguments Value Examples

View source: R/fitted_vs_obs.R

Description

Plot the results of a cross validation.

Usage

1
plot.stAirPol.prediction(prediction, time_dimension = FALSE)

Arguments

prediction

an object as returned by predict.stAirPol.model

Value

a ggplot2 object which contains the plot

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
data("mini_dataset")
mini_dataset <- clean_model_data(mini_dataset)
formula = value ~ humi + temp + rainhist + windhist +
  trafficvol + log(sensor_age)
training_set <- get_test_and_training_set(mini_dataset, sampel_size = 0.75,
                                          random.seed = 220292)
model.gp <- fit_sp_model(data = mini_dataset, formula = formula,
                         model = 'GP', training_set = training_set)
pred.gp <- predict(model.gp, mini_dataset, training_set)
plot(pred.gp)
plot(pred.gp, time_dimension = TRUE)

maxikellerbauer/stAirPol documentation built on May 3, 2019, 3:16 p.m.