r - 绘制 RandomFields 包中的对象时出现奇怪的蓝色字幕
问题描述
将轴标签参数传递给函数时,该plot
方法会RFspatialGridDataFrame
输出一个奇怪的蓝色“字幕” 。main
plot
install.packages("RandomFields")
library(RandomFields)
model <- RPbernoulli(RMexp(scale = 3), threshold = 1)
set.seed(100)
simulation <- RFsimulate(model, x = 1:138, y = 1:74)
plot(simulation, main = "This is an example title")
以下是输出的截图
奇怪的是,这似乎是一个功能,正如运行 RandomFields 文档的其他示例所示。
有没有办法不输出这个蓝色的重复标题?我曾尝试摆弄其他图形参数(例如 setting legend = F
),但行为没有改变。
解决方案
我已经联系了RandomFields
包的维护者,它似乎是RFoptions
.
通过RFoptions(grPrintlevel = 0)
在绘图之前设置,可以避免这种行为。?RFoptions
有关图形的更多信息,请参见第 10 节。有关grPrintlevel
读取的相关部分
grPrintlevel: integer values 0, 1, 2; only relevant when simulations are plotted. The higher the more text is shown in the plot. Default: 1.
推荐阅读
- regex - 确定是否在操作系统中可执行的新手正则表达式问题
- blazor - 如何在 MudTable 中找到 CurrentPage
- laravel - v-on 处理程序中的错误:“TypeError:无法读取未定义的属性‘文件’”
- firebase - 前端 Firebase 请求在通过公司代理加载的网站上被阻止
- python - 我将如何从一群人中分配每周对,以便每对在 Python 中相遇并且没有一对相遇超过一次
- android - 在android studio中使用字符串资源的无序列表下方的额外空间
- c++ - 如何在 c++17 或 c++20 中将 any_of 与参数解包一起使用?
- google-chrome - Chrome 没有为本地主机发送任何 cookie
- javascript - 登录页面到主页后未获取 Firebase 用户凭据
- r - Bioconductor RDAVIDWebService“不适用于此版本的 R”(4.1.0)