gpt4 book ai didi

R plot 除了参数?

转载 作者:行者123 更新时间:2023-12-01 23:37:05 25 4
gpt4 key购买 nike

请告知 R plot 函数中 except 参数的作用:

例如:

library(benford.analysis)
data(census.2009)

# Check conformity
bfd.cen <- benford(census.2009$pop.2009, number.of.digits = 1)
plot(bfd.cen, except = c("second order", "summation", "mantissa", "chi squared","abs diff", "ex summation", "Legend"), multiple = F)

也许某处有很好的文档,我还没有找到。

最佳答案

bfd.cen 是一个 Benford 类型的对象,因此您可以通过键入 ?plot.Benford 获取将要使用的绘图函数的文档。它像这样描述 except:

except
it specifies which plots are not going to be plotted. Currently, you can choose from 7 plots: "digits", "second order", "summation", "mantissa", "chi square", "abs diff", "ex summation". If you want to plot all, just put except = "none". The default is not to plot the "mantissa" and "abs diff".

有几种不同的绘图类型,except 指定了您可能不会绘制的任何绘图类型。尝试 plot(bfd.cen, except="none", multiple=T) 查看所有绘图类型。

plot(bfd.cen,  except="none", multiple=T) 

Benford plots

关于R plot 除了参数?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/54611437/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com