ipft (version 0.7.1)

ipfPlotEst: Plots the estimated locations

Description

Plots the estimated locations

Usage

ipfPlotEst(model, estimation, testpos = NULL, observations = c(1),
  reverseAxis = FALSE, showneighbors = FALSE, showLabels = FALSE,
  xlab = NULL, ylab = NULL, title = "")

Arguments

model

an ipfModel

estimation

an ipfEstimation

testpos

position of the test observations

observations

a numeric vector with the indices of estimations to plot

reverseAxis

swaps axis

showneighbors

plot the k selected neighbors

showLabels

shows labels

xlab

x-axis label

ylab

y-axis label

title

plot title

Examples

Run this code
# NOT RUN {
    model      <- ipfKnn(ipftrain[, 1:168], ipftrain[, 169:170])
    estimation <- ipfEstimate(model, ipftest[, 1:168], ipftest[, 169:170])
    ipfPlotEst(model, estimation, ipftest[, 169:170], observations = seq(7,10),
               showneighbors = TRUE, reverseAxis = TRUE)

# }

Run the code above in your browser using DataCamp Workspace