r - ggpubr 中是否有一些代码将 P 值变为非科学以添加到图形中
问题描述
GGPUBR 已将 P 值添加到散点图上,但我需要它是非科学的。
我已经尝试了以下代码,但这没有奏效。
compare_means(formula, data, method = "pearson", paired = FALSE,
group.by = NULL, ref.group = NULL, symnum.args = list(),
p.adjust.method = "holm", ...)
my_data <- read.csv("qPCR.csv")
library(ggpubr)
ggscatter(my_data,
x = "Intenties"
y = "qPCR",
size = 4,
color = '#a8329b',
add = 'reg.line',
add.params = list(color='black'),
cor.coef = TRUE,
cor.coeff.args = list(output.type = 'text', size = 5,
color = '#a8329b', label.sep = "\n"),
cor.method = "pearson",
conf.int = TRUE,
xlab = "Breath",
ylab = "qPCR ml/copies log")
解决方案
p 值不是很科学1 [ASA 关于 p 值的声明],但如果你的意思是你得到科学记数法,我编造了一些数据,答案不是科学记数法。也许您的 p 值结果非常低。
my_data <- data.frame("Intenties" = 1:100, "qPCR" = rnorm(100, 100, 15))
ggscatter(my_data,
x = "Intenties",
y = "qPCR",
size = 4,
color = '#a8329b',
add = 'reg.line',
add.params = list(color='black'),
cor.coef = FALSE,
# cor.coeff.args = list(output.type = 'text', size = 5,
# color = '#a8329b', label.sep = "\n"),
cor.method = "pearson",
conf.int = TRUE,
xlab = "Breath",
ylab = "qPCR ml/copies log") +
annotate("text", 25, 125, label = "p < 0.1")
推荐阅读
- flutter - setState() 会影响 Flutter 的性能吗?
- python - Dockerfile 中的 PYTHONUNBUFFERED 有什么作用?
- woocommerce - Woocommerce“wc-template-functions.php”文件中的致命错误
- java - 循环内发生数据库错误时如何回滚整个过程?
- android - 我在使用 firebase 时遇到问题,我正在尝试获取一个列表,但即使有值,该列表也不会显示在我的回收视图中
- sql-server - 如何使用 Nifi 将 Azure DataLakeStorage 中的 .parquet 数据转储到 Microsoft SQL Server 数据库?
- javascript - 是否应该在节点中收听 http.ClientReuqest 的“错误”事件?
- arrays - 将数据从 .csv 传输到结构数组,然后对其进行排序以将其保存在不同的文件中
- .htaccess - 三星 Tizen 智能电视浏览器上的 HTML5 视频不工作和扩展黑客
- spring-webflux - 带有 Spring Webflux 的 Project Reactor 中的调度程序