plot.pred: Interactive plot of a "pred" object

Description Usage Arguments Details Value Author(s) Examples

View source: R/immodata.R

Description

This function enables to plot a "pred" object and to retrieve the estimated values compared to the real prices on the market. Thanks to a shiny app, it is possible to retrieve the characteristic of the "points" by clicking on them or selecting multiple at the same time.

Usage

1
2
## S3 method for class 'pred'
plot(pred_object)

Arguments

pred_object

An objet of class "pred", which was a dataframe inputted in the predict_price function.

Details

One has to be careful using this function as the model to obtain the predicted values has been built on the same dataset in which it forecasts the price. Overfitting is clearly present and may alter the predictions.

Value

A plot of the estimated prices against the real prices.

Author(s)

Germano David

Lomazzi Vincent

Bron Luca

Raisin Edgar

Grandadam Patrik

Examples

1
2
3
cities <- get_immodata(c("bussigny", "nyon"))
predictions <- predict_price(cities)
plot(predictions)

vincentlomazzi/swissimmo documentation built on May 13, 2019, 9:53 p.m.