Learn R Programming

ipft (version 0.7.3)

ipfPlotEstimation: Plots the estimated locations

Description

Plots the estimated locations

Usage

ipfPlotEstimation(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

    model      <- ipfKnn(ipftrain[1:200, 1:168], ipftrain[1:200, 169:170])
    estimation <- ipfEstimate(model, ipftest[1:20, 1:168], ipftest[1:20, 169:170])
    ipfPlotEstimation(model, estimation, ipftest[1:20, 169:170],
                      observations = 1:4, showneighbors = TRUE,
                      reverseAxis = TRUE)

Run the code above in your browser using DataLab