ipft (version 0.2.2)

ipfPlotEst: Plots the estimated locations

Description

Plots the estimated locations

Usage

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

Arguments

model
an ipfModel
estimation
an ipfEstimation
testloc
location of 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

    model <- ipfKnn(ipftrain[, 1:168], ipftest[, 1:168])
    estimation <- ipfEstimate(model, ipftrain[, 169:170], 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 DataLab