ng_2d(RnavGraph)
ng_2d()所属R语言包:RnavGraph
Visualization instruction for 2d scatterplots on a tk2d display
对于2D的散点图上一个tk2d的显示可视化指令
译者:生物统计家园网 机器人LoveR
描述----------Description----------
Visualization instruction for a navGraph session that link the nodes of a navigation graph to 2d scatterplots and the edges to a 3d rigid rotation or a 4d transition.
链接导航图以二维散点图和一个三维的刚性旋转或4d过渡的边缘节点的navGraph届的可视化指令。
The scatterplots will be displayed on a tk2d display, provided by the RnavGraph package. tk2d allows the user to display dots, glyphs, text and images at given x-y positions. Further interactivity such as selection, zooming, brushing, changing colors and changing sizes are provided by the tk2d display. tk2d displays can also link data between different navGraph sessions.
的散点图,将显示上tk2d显示,由RnavGraph的软件包提供。 tk2d允许用户显示点,字形,在给定的xy位置的文本和图像。如选择的进一步的交互性,缩放,刷涂,改变颜色和改变体积中所提供由tk2d显示。 tk2d显示器,也可以连接不同的navGraph会议之间的数据。
用法----------Usage----------
ng_2d(data, graph, images = NULL, glyphs = NULL)
参数----------Arguments----------
参数:data
NG_data object.
NG_data对象。
参数:graph
NG_graph object.
NG_graph对象。
参数:images
NG_image object. Order of the images must match the order of the data in the NG_data object.
NG_image对象。订单的图像必须匹配的顺序数据在NG_data对象。
参数:glyphs
Vector of character strings matching either the names or shortnames of the NG_data object.
向量的字符串匹配的names或shortnamesNG_data对象。
Details
详细信息----------Details----------
The text labels in the tk2d display are taken from the labels slot in the NG_data object.
从标签插槽在NG_data对象的采取在tk2d显示的文本标签。
It the group slot of the NG_data object contains only colors from the colors function, objects get colored accordingly. Otherwise the group data gets mapped to some color key.
这组插槽的NG_data对象只包含颜色从colors功能,对象得到相应的颜色。否则,该组数据被映射到一些颜色键。
值----------Value----------
NG_Viztk2d object that inherits from the NG_Visualization class.
NG_Viztk2d对象,继承从NG_Visualization类的。
(作者)----------Author(s)----------
Adrian Waddell and R. Wayne Oldford
参见----------See Also----------
navGraph, ng_data, ng_graph, ng_image_array_gray, ng_image_files, ng_get-methods, ng_set-methods, ng_2d_ggobi, ng_2d_myplot
navGraph,ng_data,ng_graph,ng_image_array_gray,ng_image_files,ng_get-methods,ng_set-methods,ng_2d_ggobi,ng_2d_myplot
实例----------Examples----------
## NG_data[#NG_data]
ng.iris <- ng_data(name = "iris", data = iris[,1:4],
shortnames = c('s.L', 's.W', 'p.L', 'p.W'),
group = iris$Species,
labels = substr(iris$Species,1,2))
## NG_graph[#NG_graph]
G <- completegraph(shortnames(ng.iris))
LG <- linegraph(G, sep = "++")
ng.lg <- ng_graph("3d transition", LG, "++", "fruchtermanReingold" )
## NG_image[#NG_image]
## see the image demos: demo(package = "RnavGraph")[看到的图像演示:演示(包=“RnavGraph”)]
## Visualization instruction[#可视化指令]
viz1 <- ng_2d(ng.iris, ng.lg, glyphs = c("s.L","s.W","p.L","p.W"))
viz1
转载请注明:出自 生物统计家园网(http://www.biostatistic.net)。
注:
注1:为了方便大家学习,本文档为生物统计家园网机器人LoveR翻译而成,仅供个人R语言学习参考使用,生物统计家园保留版权。
注2:由于是机器人自动翻译,难免有不准确之处,使用时仔细对照中、英文内容进行反复理解,可以帮助R语言的学习。
注3:如遇到不准确之处,请在本贴的后面进行回帖,我们会逐渐进行修订。
|