neighbormap.m

来自「计量工具箱」· M 代码 · 共 31 行

M
31
字号
function [out]=neighbormap(long,lat,variable,W,varargin)
% PURPOSE: This function links a map and a neighbour plot (scatterplot of variable against variable
% for the neighboring sites)
%------------------------------------------------------------------------
% USAGE: out=neighbormap(long,lat,variable,W,carte,label,symbol)
%   where : 
%           long = n x 1 vector of coordinates on the first axis
%           lat = n x 1 vector of coordinates on the second axis
%           variable = n x 1 vector of the variable to study
%           W = weight matrix
%           carte = n x 2 optionnal matrix giving the polygons of the edges of the spatial units
%           label = n x 1 optionnal variable used to label selected observations
%           symbol = * symbol=1 : selected spatial units are marked with a different symbol
%                    * symbol=0 : selected spatial units are marked with a different color only (default)
%------------------------------------------------------------------------
% OUTPUTS: out = (n x 1) 0-1 variable: selected spatial units are marked with a 1  
%------------------------------------------------------------------------
% MANUAL: Select points on the neighbour plot by clicking with the left mouse button
%         Select a point and his neighbour on the map by clicking with the left mouse button
%         You can select points inside a polygon and their neighbours: - right click to set the first point of the polygon
%                                                                      - left click to set the other points
%                                                                      - right click to close the polygon
%         Selection is lost when you click on the map
%         To quit, click the middle button or press 'q'
% -----------------------------------------------------------------------
% uses selectstat.m
%------------------------------------------------------------------------
% -----------------------------------------------------------------------
% Christine Thomas-Agnan, Anne Ruiz-Gazen, Julien Moutel
% June 2003
% Universit

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?