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

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

[复制链接]
发表于 2012-9-30 01:34:19 | 显示全部楼层 |阅读模式
plot(sets)
plot()所属R语言包:sets

                                        Plot functions for generalized sets
                                         广义集绘图功能

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

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

Plot and lines functions for (tuples of) generalized sets and
图和线功能(元组)广义套


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


## S3 method for class 'gset'
plot(x, type = NULL, ylim = NULL,
         xlab = "Universe", ylab = "Membership Grade", ...)
## S3 method for class 'cset'
plot(x, ...)
## S3 method for class 'set'
plot(x, ...)
## S3 method for class 'tuple'
plot(x, type = "l", ylim = NULL,
         xlab = "Universe", ylab = "Membership Grade", col = 1,
         continuous = TRUE, ...)
## S3 method for class 'charfun_generator'
plot(x, universe = NULL, ...)

## S3 method for class 'gset'
lines(x, type = "l", col = 1, continuous = TRUE,
         universe = NULL, ...)
## S3 method for class 'cset'
lines(x, ...)
## S3 method for class 'set'
lines(x, ...)
## S3 method for class 'tuple'
lines(x, col = 1, universe = NULL, ...)
## S3 method for class 'charfun_generator'
lines(x, universe = NULL, ...)



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

参数:x
For a method for class <VAR>foo</VAR>, an object of class <VAR>foo</VAR>.
的方法类<VAR>富</ VAR>,一个的对象类<VAR>富</ VAR>。


参数:type
Same as the type argument of plot.  For plot.gset and plot.cset, "barplot" can also be used.
作为typeplot参数相同。对于plot.gset和plot.cset,"barplot"也可以使用。


参数:universe
Universal set used for setting up the plot region. By default, this is deduced from the object(s) to be plotted.
通用设置的图区域使用。默认情况下,推导出要绘制的对象(S)。


参数:col
Character or integer vector specifying the color of the object(s) to be plotted.
字符或整数向量,指定要绘制的对象(S)的颜色。


参数:continuous
Logical indicating whether zero membership degrees &ldquo;inside&rdquo; the graph should be ignored.
逻辑零隶属度“里面的”图形是否应该被忽略。


参数:xlab, ylab
Character labels for the axes.
字符标签的轴。


参数:ylim
Double vector of length 2 defining the range of the y axis.
双人向量,长度为2的y轴定义的范围内。


参数:...
Further arguments passed to the default plot methods.
进一步的参数传递给默认的图方法。


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

The main argument (invisibly).
主要参数(不可见)。


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

set, gset, and tuple for the set types, and fuzzy_normal for available characteristic functions.
set,gset和tuple的集合类型,并fuzzy_normal可用的特性功能。


实例----------Examples----------


## basic plots[#基本图]
plot(gset(1:3, 1:3/3))
plot(gset(1:3, 1:3/3, universe = 0:4))
plot(gset(c("a", "b"), list(1:2/2, 0.3)))

## characteristic functions[#特色功能]
plot(fuzzy_normal)
plot(tuple(fuzzy_normal, fuzzy_bell), col = 1:2)
plot(fuzzy_pi3_gset(min = 2, max = 15))

## superposing plots using lines()[#叠加线(图)]
x <- fuzzy_normal_gset()
y <- fuzzy_trapezoid_gset(corners = c(5, 10, 15, 17), height = c(0.7, 1))
plot(tuple(x, y))
lines(x | y, col = 2)
lines(x &amp; y, col = 3)

## another example using gset_mean[#另一个例子使用gset_mean]
x <- fuzzy_two_normals_gset(sd = c(2, 1))
y <- fuzzy_trapezoid_gset(corners = c(5, 9, 11, 15))
plot(tuple(x, y))
lines(tuple(gset_mean(x, y),
            gset_mean(x, y, "geometric"),
            gset_mean(x, y, "harmonic")),
      col = 2:4)

## creating a sequence of sets[#创建一个序列集]
plot(fuzzy_tuple(fuzzy_cone, 10), col = gray.colors(10))

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


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

使用道具 举报

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

本版积分规则

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

GMT+8, 2025-5-21 07:20 , Processed in 0.030434 second(s), 16 queries .

Powered by Discuz! X3.5

© 2001-2024 Discuz! Team.

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