📄 som_plotplane.html
字号:
<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML//EN"><html><head><title>SOM Toolbox / som_plotplane </title></head><body bgcolor=#f0f0f0><table border=0 width="100%" cellpadding=0 cellspacing=0><tr><td valign=baseline><font size=+2>SOM Toolbox</font></td><td valign=baseline align=center><a href="somtoolbox.html">Online documentation</td><td valign=baseline align=right><a href="http://www.cis.hut.fi/projects/somtoolbox/" target="_top">http://www.cis.hut.fi/projects/somtoolbox/</a></td></tr></table><hr><H1> som_plotplane </H1><H3> Purpose </H3><PRE> Visualizes the map prototype vectors as line graph</PRE><H3> Syntax </H3><UL><PRE> h = som_plotplane(topol, data) h = som_plotplane(lattice, msize, data) h = som_plotplane(..., color) h = som_plotplane(..., color, scaling) h = som_plotplane(..., color, scaling, pos)</PRE></UL><H3> Description </H3><PRE> Visualizes the map prototype vectors as line graph</PRE><H3> Known bugs </H3><PRE> It is not possible to specify explicit coordinates for map consistig of just one unit as then the msize is interpreted as map size.</PRE><H3> Features </H3><PRE> - the colors are fixed: changing colormap in the figure (see COLORMAP) will not affect the coloring of the plots</PRE><H3> Required input arguments </H3><PRE> lattice The basic topology (string) 'hexa' or 'rect' positions the plots according to hexagonal or rectangular map lattice. msize The size of the map grid (vector) [n1 n2] vector defines the map size (height n1 units, width n2 units, total M=n1 x n2 units). The units will be placed to their topological locations in order to form a uniform hexagonal or rectangular grid. (matrix) Mx2 matrix defines arbitary coordinates for the M units. In this case the argument 'lattice' has no effect. topol Topology of the map grid (struct) map or topology struct from which the topology is taken data The data to be visualized (matrix) Mxd matrix of data vectors. </PRE><H3> Optional input arguments </H3><PRE> If unspecified or given empty values ('' or []), default values will be used for optional input arguments. color The color of the plots (string) Matlab's ColorSpec (see help plot) string gives the same color for each line. (matrix) Mx3 matrix assigns an RGB color determined by the Nth row of the matrix to the Nth plot. (vector) 1x3 RGB vector gives the same color for each line. scaling The data scaling mode (string) 'on or 'off': if scaling is set on, the data will be linearly scaled in each unit so that min and max values span from lower to upper edge in each unit. If scaling is 'off', the proper scaling is left to the user: values in range [-.5,.5] will be plotted within the limits of the unit while values exceeding this range will be out of the unit. pos Position of the origin (vector) This is meant for drawing the plane in arbitary location in a figure. Note the operation: if this argument is given, the axis limits setting part in the routine is skipped and the limits setting will be left to be done by MATLAB's defaults. By default no translation is done.</PRE><H3> Output arguments </H3><PRE> h (scalar) Handle to the created patch object</PRE><H3> Object tag </H3><PRE> Object property 'Tag' is set to 'planePlot'. </PRE><H3> Examples </H3><PRE> %%% Create the data and make a map data=rand(1000,20); map=som_make(data); %%% Create a 'gray' colormap that has 64 levels color_map=gray(64); %%% Draw plots using red color som_plotplane(map, map.codebook,'r'); %%% Calculate hits on the map and calculate colors so that black = min. number of hits and white = max. number of hits hit=som_hits(map,data); color=som_normcolor(hit(:),color_map); %%% Draw plots again. Now the gray level indicates the number of hits to each node som_plotplane(map, map.codebook, color);</PRE><H3> See also </H3><TABLE NOBORDER WIDTH=80%><TR><TD><a href="som_cplane.html"><B>som_cplane</B></a><TD> Visualize a 2D component plane, u-matrix or color plane<TR><TD><a href="som_barplane.html"><B>som_barplane</B></a><TD> Visualize the map prototype vectors as bar diagrams.<TR><TD><a href="som_pieplane.html"><B>som_pieplane</B></a><TD> Visualize the map prototype vectors as pie charts</TABLE><p><hr><br><br><!-- Last updated: May 30 2002 --></body></html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -