som.plot(somplot)
som.plot()所属R语言包:somplot
Function to plot hexagonal Kohonen maps
功能绘制六角Kohonen网络图
译者:生物统计家园网 机器人LoveR
描述----------Description----------
The function plots hexagonal self-organising maps (SOMs), which have been created with Teuvo Kohonen's SOM_PAK software.
功能图:六角形的自组织映射(SOM网络),已创建的图沃Kohonen的SOM_PAK软件的。
The plot shows an hexagonal lattice representing the codebook vectors of the SOM. Inside each hexagon a pie chart is drawn, showing the relative percentage of pattern classes, mapped to this codebook vector. The size of each pie chart is adjusted according to the number of mapped patterns.
图中显示了六方晶格代表的SOM的码本向量。加入各六角形饼图被绘制时,示出的相对百分数,映射到该码本矢量的模式类。每个饼图的大小来调整根据映射的图案的数目。
Several arguments allow customisation of size, scale and colouring of the plot.
有几个参数允许自定义的规模,范围和着色的图。
The function needs two files of the SOM_PAK file set:
该功能需要两个文件的设置的SOM_PAK文件:
The output of visual provides the mapping of input patterns to the codebook vectors.
的输出visual提供的码本向量的映射的输入模式。
The input file holding the mapped dataset with class information in the last column. </ul>
类信息中的最后一列的映射的数据集的输入文件保持。 </ ul>
用法----------Usage----------
som.plot(visfile, datfile, ...)
参数----------Arguments----------
参数:visfile
Name of the output file of visual. visual is the tool of SOM_PAK which maps pattern to the codebook vectors of a self-organising map.\ The function reads files in the format created by visual.
的visual的输出文件的名称。 visual是映射模式的自组织映射码本向量的工具SOM_PAK。,\函数读取文件的格式创建的visual。
参数:datfile
Name of the SOM_PAK input file. This files contains all input patterns and class information for each pattern. som-plot only uses the last colums of the file; i.e. the class information for each pattern.\ The function reads files in the format that is used by SOM_PAK.
在SOM_PAK输入文件的名称。此文件包含所有的输入模式,每个模式类信息。 som-plot只使用最后colums的文件,即每个模式的类信息。\函数读取文件的格式,所使用的SOM_PAK。
参数:...
Many other arguments can be given to control the appearence of the plot:
许多其他的参数可以给出的图控制appearence:
"col", default colours for the classes of the dataset. Possible values include:
col的,类的数据集的默认颜色。可能的值包括:
"default value: NA." Colours are generated by rainbow()
默认值:NA“。颜色所产生的rainbow()
"vector" of colour definitions
媒介的颜色定义
"data frame" with name of a class in column 1 and colour definitions in column 2.
“数据框”的第1列,第2栏的颜色定义中的类名。
If the number of defined colours is smaller then the number of classes in the dataset, colours for the remaining classes are generated by rainbow.
如果定义的颜色数是较小的数的数据集的类,其余类的颜色所产生的rainbow。
"onlyDefCols" default: <KBD>FALSE</KBD>; if TRUE, all undefined colours are replaced by <KBD>white</KBD>
“onlyDefCols的默认:<KBD> FALSE </ KBD>;如果为TRUE,所有未定义的颜色所取代<KBD>白色</ KBD>
"edit.cols" default: <KBD>FALSE</KBD>; if TRUE, a dialog box opens and allows editing of all color definitions
“edit.cols的默认<KBD> FALSE </ KBD>如果为TRUE,将打开一个对话框,并允许所有的颜色定义的编辑
"show.legend" default: <KBD>TRUE</KBD>; defines if colour legend is displayed
定义了传奇的色彩显示“show.legend的默认<KBD> TRUE </ KBD>;
"legend.width" default: <KBD>4</KBD>; Width of legend
“legend.width的默认<KBD> 4 </ KBD>;宽度的传说
"turn" default: <KBD>FALSE</KBD>; swap X and Y axis
“转”默认:<KBD> FALSE </ KBD>;交换X和Y轴
"window.width" default: <KBD>NA</KBD>; width of the window
“window.width的默认:<KBD> NA </ KBD>窗口的宽度
"window.height" default: <KBD>NA</KBD>; height of the window
“window.height的默认:<KBD> NA </ KBD>窗口的高度
"show.box" default: <KBD>TRUE</KBD>; show frame around the plot
“show.box默认:<KBD> TRUE </ KBD>;展架周围的图
"show.axis" default: <KBD>FALSE</KBD>; show x and Y axis
show.axis的默认<KBD> FALSE </ KBD>显示X轴和Y轴
"scaleX" default: <KBD>NA</KBD>; scale factor for X axis (overwrites new.xdim argument)
“将scaleX”默认:<KBD> NA </ KBD> X轴的比例因子(覆盖new.xdim参数)
"scaleY" default: <KBD>NA</KBD>; scale factor for Y axis (overwrites new.ydim argument)
“SCALEY的默认<KBD> NA </ KBD> Y轴的比例因子(覆盖new.ydim参数)
"scale" default: <KBD>NA</KBD>; scale factor for X and Y axis (overwrites other scale argument)
“规模”默认:<KBD> NA </ KBD> X和Y轴的比例因子(覆盖其他规模4619)
"new.xdim" default: <KBD>NA</KBD>; scale X axis to specified number of neurons
“new.xdim的默认:<KBD> NA </ KBD>;规模X轴指定数量的神经元
"new.ydim" default: <KBD>NA</KBD>; scale Y axis to specified number of neurons
“new.ydim的默认:<KBD> NA </ KBD>;规模Y轴指定数量的神经元
"show.counter.border" default: <KBD>0.98</KBD> percentile as limit for the display of labels in the pie charts
“show.counter.border的默认:<KBD> 0.98 </ KBD>百分限制的标签显示在饼图
值----------Value----------
The function does not returns a value.
该函数不返回一个值。
(作者)----------Author(s)----------
Benjamin Schulz, Andreas Dominik
参考文献----------References----------
Schulz, B., Mauthe, T., Dominik, A., 2010. Visualisation of Kohonen Maps using R. University of Applied Sciences Giessen, Website, [Online]. Available at: http://www.life-science-it.org/pages/research/projectSomplot.html [Accessed 19 May 2011]. and http://www.bioconductor.org/packages/2.5/bioc/html/hexbin.html
实例----------Examples----------
som.plot(system.file("test.data/iris4som.out", package="somplot"),
system.file("test.data/iris4som.dat", package="somplot"))
转载请注明:出自 生物统计家园网(http://www.biostatistic.net)。
注:
注1:为了方便大家学习,本文档为生物统计家园网机器人LoveR翻译而成,仅供个人R语言学习参考使用,生物统计家园保留版权。
注2:由于是机器人自动翻译,难免有不准确之处,使用时仔细对照中、英文内容进行反复理解,可以帮助R语言的学习。
注3:如遇到不准确之处,请在本贴的后面进行回帖,我们会逐渐进行修订。
|