找回密码
 注册
查看: 2077|回复: 0

R语言 SVGAnnotation包 getShape()函数中文帮助文档(中英文对照)

[复制链接]
发表于 2012-2-22 21:03:01 | 显示全部楼层 |阅读模式
getShape(SVGAnnotation)
getShape()所属R语言包:SVGAnnotation

                                        Compute the shape of an SVG node
                                         计算一个SVG节点的形状

                                         译者:生物统计家园网 机器人LoveR

描述----------Description----------

This function analyzes a given SVG node and attempts to determine the shape of the element.  It then returns an object of the corresponding shape class (e.g. Circle, Line, VerticalLine, ...) containing the relevant information about that shape for this element, e.g. the x, y coordinates and the radius for a circle.
这个函数分析一个给定的SVG的节点,并试图确定该元素的形状。然后,它返回一个相应的形状类的对象(如圆,线,VerticalLine,...),其中包含此元素,如有关该形状相关信息X,Y坐标和半径。


用法----------Usage----------


getShape(node, d = xmlGetAttr(node, "d"))



参数----------Arguments----------

参数:node
the SVG node
SVG的节点


参数:d
the path of the node that draws the shape.
绘制形状的节点的路径。


值----------Value----------

An object of one of the classes derived from the class Shape. These are Circle, Polygon, Polyline, Line, RectangularBoundingBox, VerticalLine and HorizontalLine.
类Shape从派生类的对象。这是圆,多边形,折线,线,RectangularBoundingBox,VerticalLine和HorizontalLine。


作者(S)----------Author(s)----------



Duncan Temple Lang




参见----------See Also----------

guessSVGShape. This is probably the more appropriate function to use.
guessSVGShape。这可能是更合适的功能使用。


举例----------Examples----------



dd = list(a = c(rnorm(100), rnorm(10, 3)), b = rnorm(400))

doc1 = svgPlot(boxplot(dd$a))

pts = getPlotPoints(doc1)
shapes = sapply(pts, SVGAnnotation:::getShape)
sapply(shapes, class)


doc2 = svgPlot(boxplot(dd))

pts2 = getPlotPoints(doc2)
shapes = sapply(pts2, SVGAnnotation:::getShape)
sapply(shapes, class)


转载请注明:出自 生物统计家园网(http://www.biostatistic.net)。


注:
注1:为了方便大家学习,本文档为生物统计家园网机器人LoveR翻译而成,仅供个人R语言学习参考使用,生物统计家园保留版权。
注2:由于是机器人自动翻译,难免有不准确之处,使用时仔细对照中、英文内容进行反复理解,可以帮助R语言的学习。
注3:如遇到不准确之处,请在本贴的后面进行回帖,我们会逐渐进行修订。
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

手机版|小黑屋|生物统计家园 网站价格

GMT+8, 2025-5-2 01:47 , Processed in 0.027283 second(s), 16 queries .

Powered by Discuz! X3.5

© 2001-2024 Discuz! Team.

快速回复 返回顶部 返回列表