r - 如何在 ggiNEXT 图中编辑 X 轴和 Y 轴的标签?
问题描述
我的问题是,如何在 ggiNEXT 的图中编辑 X 轴和 Y 轴的标签?
data(spider)
str(spider)
out=iNEXT(spider, q=0, datatype="abundance")
spider_plot=ggiNEXT(out, type=1, facet.var="site", color.var="order")
spider_plot
解决方案
ggiNEXT
是 iNEXT 对象的 ggplot2 扩展。这只是意味着在创建对象后,您可以使用 ggplot2 命令来操作绘图。
library(iNEXT)
library(ggplot2)
data(spider)
out <- iNEXT(spider$Girdled, q=0, datatype="abundance")
spider_plot <- ggiNEXT(out, type=1, facet.var="site", color.var="order")
# add ggplot2 adjustments via labs
spider_plot + labs(x = "my x label text", y = "my y label text")
推荐阅读
- keras - 保存包裹在管道内的 Keras 模型
- excel - 基于其他组合框Excel VBA的依赖组合框列表
- android - 无法在嵌套视图中使用数据绑定
- hibernate - Hibernate 为相同的代码生成不同的查询
- driver - 在我的笔记本电脑中更新图形驱动程序会导致黑屏?
- c - 是什么导致此堆缓冲区溢出?
- kotlin - 流动
.distinctUntilChanged() 不起作用 - c++ - 融合 IMU 和 Pressure_height 时,来自 hector_localization 堆栈的 Velocity 发布的主题不正确
- git - 修改远程仓库中的 .git 文件夹
- expect - 在 linux expect 命令中跳过迭代