- html - 出于某种原因,IE8 对我的 Sass 文件中继承的 html5 CSS 不友好?
- JMeter 在响应断言中使用 span 标签的问题
- html - 在 :hover and :active? 上具有不同效果的 CSS 动画
- html - 相对于居中的 html 内容固定的 CSS 重复背景?
我想知道如何改变 Tukey 的 HSD 绘图的轴,这样我就可以缩短单词以使每个比较合适并且看起来不那么荒谬。
如果您能帮助我更改轴标签、字体大小和颜色的代码,那将会有很大帮助。
图中有相当多的比较,所以我想通过改变颜色来使重要的比较(间隔不在“0”线上的比较)更加突出。
`Gastropods = read.csv(file = "MaroubraZones.csv", header = TRUE)
boxplot(Abundance ~ Zone*Species,data = Gastropods, names = c("A.high", "A.mid", "A.low", "C.high", "C.mid", "C.low", "N.high", "N.mid", "N.low"))
Gastropods.ANOVA = aov(Abundance ~ Zone * Species, data = Gastropods)
hist(Gastropods.ANOVA$residuals)
plot(Gastropods.ANOVA)
Gastropods$LOGAbundance = log10(Gastropods$Abundance + 1)
Gastropods$SQRTAbundance = sqrt(Gastropods$Abundance + 1)
summary(Gastropods.ANOVA)
summary(Gastropods$SQRTAbundance.ANOVA)
interaction.plot(Gastropods$Zone, Gastropods$Species, Gastropods$Abundance, main= "Gastropod Interaction Plot", xlab = "Gastropod Zone", ylab= "Mean of Gastropod Abundance",legend = FALSE))
interaction.plot(Gastropods$Zone, Gastropods$Species, Gastropods$Abundance, main= "Gastropod Interaction Plot", xlab = "Gastropod Zone", ylab= "Mean of Gastropod Abundance", legend = FALSE)
TukeyHSD(Gastropods.ANOVA)
tuk<-TukeyHSD(Gastropods.ANOVA)
plot(tuk)`
正如您所看到的,轴的效果很糟糕,我想突出显示零区间之外的重要值。
最佳答案
试试这个:
TukeyHSD(Gastropods.ANOVA)
tuk<-TukeyHSD(Gastropods.ANOVA)
psig=as.numeric(apply(tuk$`Zone:Species`[,2:3],1,prod)>=0)+1
op=par(mar=c(4.2,9,3.8,2))
plot(tuk,col=psig,yaxt="n")
for (j in 1:length(psig)){
axis(2,at=j,labels=rownames(tuk$`Zone:Species`)[length(psig)-j+1],
las=1,cex.axis=.8,col.axis=psig[length(psig)-j+1])
}
par(op)
你将会得到与此情节类似的内容
关于r - 在 Rstudio 中修改 Tukey HSD 95% 系列 CL 图,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/30548217/
在使用 rstudio 中的“查找/替换”功能进行搜索时,如何(如果可能)在我的 Rscript 中计算搜索的总出现次数? 例如,假设我有以下脚本: a <- c(1,2,3) print(a) pr
我试图确保在保存文件时,Shiny 中 RStudio 中的代码折叠(通过 Alt+L)保持原位。目前,每次保存文件时,折叠都会消失。有人知道如何使折叠永久且独立于保存文件吗? 供引用:我在 Wind
我是一个非常注重视觉的人,希望区分#我注释掉的命令和##给我自己或同事的文件消息。我查看了 RStudio 是否支持不同类型的注释,但似乎不支持。有谁知道解决这个问题的方法吗? 谢谢! 最佳答案 你可
我正在使用 RStudio,并一直在尝试使用 rPython 包来为我处理一些电子邮件。这涉及到解压一些电子邮件附件,因此我需要使用比 2.7 更新的 Python 版本。 我在 ubuntu 上,所
我刚读了Google's R Style Guide , 并决定与函数名和变量中的字母大小写一致。如何在 RStudio 的编辑器中更改字母大小写?具体来说,如何换词 全部小写 全部大写 大写的大小写
有没有办法禁用 RStudio 中的所有断点?我查看了 RStudio 文档并进行了谷歌搜索,但找不到方法。 最佳答案 我也很好奇,特别想对断点有个大概的了解。 我跑了grep在我的项目文件夹中,这就
是否可以在 Rstudio 中更改背景颜色?我知道可以更改编辑器的主题,这是一个非常好的功能并且我已经在使用,但是是否可以更改其他窗口(环境、历史、文件等)的背景颜色... ) 到白色以外的其他东西,
我正在 RStudio 中开发一个包,并想使用断点来调试我的函数。但是,我一直遇到同样的问题:我设置了一个断点,RStudio 警告我必须构建并重新加载包才能激活断点(即使我刚刚构建并重新加载了包),
登录Desktop Rstudio后,会出现以下消息: Error in yaml.load(readLines(con), error.label = error.label, ...) : o
我已经开始学习 - Windows 操作系统上的机器学习类(class)。每当我启动 Spyder 3.2.4(Python 3.6) & RStudio(1.1.383) 的新实例时,每次我都需要在
我看了Fira Code我想使用列出的受支持编辑器之一进行尝试。所以我启动了 RStudio(Win 盒上的 0.99.491 版)并将字体设置为 Fira Code 但......没有。那么如何在
在 linux 中,我经常用鼠标突出显示文本进行复制,然后在其他地方单击鼠标中键进行粘贴。在 RStudio 中,这不起作用,强制使用 Ctrl+C 和 Ctrl+V 或右键单击菜单。我经常想在控制台
有没有办法改变 help 中显示的文本的字体大小? Rstudio 的选项卡? 我知道可以在所有面板中更改字体大小 Tools > Global > Options > Appearance ,但它不
我下载了最新版本的 Rstudio 以便能够自定义主题。 我按照这个教程安装了 Pandas 主题: https://towardsdatascience.com/customize-your-rst
我使用的是 RStudio 版本 1.1.456,它运行的是 R 版本 3.5.1。我在 64 位 Windows 7 Enterprise 上运行。 我刚开始使用 R Markdown,所以当我在
我一直使用 VScode 作为记笔记的主要 Markdown 平台,并且我已经习惯了实时预览功能。 现在我必须使用 Rmarkdown 生成可更新的报告,我想知道是否有人知道如何使用 Rstudio
我戴老花眼镜,可以阅读所有其他 Pane ,但经常不得不打开 R 寻求帮助,因为它的字体较大,虽然我觉得不方便。 我在 support.rstudio.com 中没有找到任何答案;其他人在 2014
实际上我需要使用 https 运行 rstudio 服务器。 默认为http://server-ip:8787 我正在关注这个文件-(ssl-配置) https://s3.amazonaws.com/
Anaconda 4.3.1 中包含的 Rstudio 安装在我的视网膜屏幕 macbook 上以低分辨率显示。 其他 anaconda 应用程序,以及独立版本的 Rstudio 看起来都不错。 关于
在我的代码完成执行后,我不断地在 RStudio 的编辑窗口中输入,当时我的目的是在控制台窗口中提供一些输入。是否有可以执行的 R 代码可以自动将焦点移动到 RStudio 的控制台窗口? 最佳答案
我是一名优秀的程序员,十分优秀!