rysgran.hist(rysgran)
rysgran.hist()所属R语言包:rysgran
Histograms of Grain Size Data
粒度数据的直方图
译者:生物统计家园网 机器人LoveR
描述----------Description----------
rysgran.hist generates histograms of weight percentage of phi classes for each grain size sample
rysgran.hist生成直方图披类的重量百分比为每个晶粒尺寸的样品
用法----------Usage----------
rysgran.hist(data, subset = NULL, which = NULL, ordered = TRUE)
参数----------Arguments----------
参数:data
a data matrix with grain size samples. Must contain the first line of grain size classes (logarithmic or geometric scale), each following line should contain the weights of a sample. No header should be used
数据矩阵,晶粒尺寸的样品。必须包含晶粒尺寸类(对数或几何尺度)的第一行,每个以下的行应包含的试样的重量。应使用无头
参数:subset
Vector whit factor to subset the histograms. Default is NULL
矢量白衣因素子集的直方图。默认值是NULL
参数:which
factor from subset object argument. Default is NULL
从subset对象参数的因素。默认值是NULL
参数:ordered
logical. If TRUE the panels order is on the order of row in tab, if FALSE the order is alphabetical. Default is TRUE
逻辑。如果为true,面板的顺序是,如果为FALSE的顺序是按字母顺序排列的顺序排在tab。默认值是TRUE
Details
详细信息----------Details----------
rysgran.hist is the only function in rysgran package which uses the package lattice. Users familiarized with lattice will have no problem using this function
rysgran.hist是唯一的功能在rysgran包使用的包lattice的。熟悉晶格的用户使用此功能不会有任何问题
值----------Value----------
return multiples histograms
返回倍数直方图
(作者)----------Author(s)----------
Leonardo Sandrini (<a href="mailto:leonardosandrini@gmail.com">leonardosandrini@gmail.com</a>)<br>
Eliandro R. Gilbert (<a href="mailto:eliandrogilbert@gmail.com">eliandrogilbert@gmail.com</a>)
参见----------See Also----------
rysgran.plot , gran.stats , rysgran.ternary , class.percent , lattice
rysgran.plot,gran.stats,rysgran.ternary,class.percent,lattice
实例----------Examples----------
library(rysgran)
data(camargo2001)
data(sed.phi)
#histograms[直方图]
rysgran.hist(camargo2001)
#histograms separated by factors[直方图分离的因素]
env<- rep(c("River","Tidal Flat","Subtidal","Beach"),each=10)
rysgran.hist(sed.phi, subset = env , which= "Subtidal")
#Making it more attractive[使其更具吸引力]
env<- rep(c("River","Tidal Flat","Subtidal","Beach"),each=10)
hist <- rysgran.hist(sed.phi, subset = env , which= "Subtidal")
hist
hist.up <- update(hist, aspect = .4,
scales=list(x=list(cex=.7),y=list(cex=.7)),
layout = c(2,5),
between= list(x = c(0.2), y = c(0.2)),
ylab = "Frequency",
xlab = expression(paste(phi)),
strip = strip.custom(bg = "lightblue"),
col = "red",
main="Histogram")
hist.up
转载请注明:出自 生物统计家园网(http://www.biostatistic.net)。
注:
注1:为了方便大家学习,本文档为生物统计家园网机器人LoveR翻译而成,仅供个人R语言学习参考使用,生物统计家园保留版权。
注2:由于是机器人自动翻译,难免有不准确之处,使用时仔细对照中、英文内容进行反复理解,可以帮助R语言的学习。
注3:如遇到不准确之处,请在本贴的后面进行回帖,我们会逐渐进行修订。
|