symbol.size(simba)
symbol.size()所属R语言包:simba
Little helper function to obtain bubble plots with simple plot and points methods
小的辅助函数来获取气泡图,简单的图和点方法
译者:生物统计家园网 机器人LoveR
描述----------Description----------
Can be used within the cex argument of a plotting command (plot or points) to scale the symbols with regard to the values of a numeric variable. Thus, a bubble plot is computed.
可用于在CEX的绘图命令的参数(plot或points)扩展的符号的数值变量的值。因此,气泡图的计算方法。
用法----------Usage----------
symbol.size(x, cex.min = 0.2, cex.max = 5)
参数----------Arguments----------
参数:x
A numeric vector giving the data for scaling the symbols in a scatter (however, you can scale everything that's got a cex argument). The vector must have the same length as x (and y) that give the plotting positions.
一个数值向量的符号扩展在分散的数据(但是,您可以缩放一切的得到了cex参数)。向量必须具有相同的长度x(y)的绘图位置。
参数:cex.min
The minimum size (scaling) of the plotted symbols.
最小尺寸(缩放)所绘制的符号。
参数:cex.max
The maximum size (scaling) of the plotted symbols.
最大尺寸(缩放)所绘制的符号。
Details
详细信息----------Details----------
The same, but in a mapping context can be achieved by bubble. Also symbols provides a comparable result. However, with symbol.size a very simple interface to bubble plots that can be used within regular scatter plot methods is given.
相同的,但在一个映射上下文可以实现bubble。 symbols提供了类似的结果。然而,与symbol.size的一个非常简单的接口,以气泡图,可用于内定期散点图方法。
值----------Value----------
A vector is returned with values between cex.min and cex.max that represent the values in the input vector x. After all, there is just a scaling applied. The vector is meant to be used to specifiy cex whereever appropriate.
一个向量与cex.min和cex.max表示的输入矢量x中的值之间的值返回。毕竟,只是一个比例换算。该向量是指将用于指定要cex徘徊无论适当。
(作者)----------Author(s)----------
Gerald Jurasinski
参考文献----------References----------
Cheshire, Connecticut.
参见----------See Also----------
bubble, symbols
bubble,symbols
实例----------Examples----------
# load abisko data that comes with simba[加载阿比斯库数据与辛巴]
data(abis)
# take the environmental data end plot species richness at the field plot positions[采取的环境数据终端图物种丰富度在田间小区位置]
with(abis.env, {plot(X, Y, cex=symbol.size(n.spec))})
# make kind of a multivariate plot in 3d:[种一个多元的图在3D:]
# the relation between shannon, evenness, and simpson index (bubble size)[香,均匀度,Simpson指数(气泡的大小之间的关系)]
with(abis.env, {plot(shannon, even, cex=symbol.size(simps, cex.max=8))})
转载请注明:出自 生物统计家园网(http://www.biostatistic.net)。
注:
注1:为了方便大家学习,本文档为生物统计家园网机器人LoveR翻译而成,仅供个人R语言学习参考使用,生物统计家园保留版权。
注2:由于是机器人自动翻译,难免有不准确之处,使用时仔细对照中、英文内容进行反复理解,可以帮助R语言的学习。
注3:如遇到不准确之处,请在本贴的后面进行回帖,我们会逐渐进行修订。
|