【发布时间】:2022-12-11 03:22:11
【问题描述】:
enter image description here
我将 ggplot2 用于点图和相关系数,并以 plotly 方式查看每个点的信息,但图中的字体样式有误。我需要 R= 0.87 P=2.2e-16 而不是斜体 (R) 或斜体 (p),同时将映射部分保留在 stat_cor 中。我想,plotly 无法理解 italic(p) 部分作为代码
这是代码:
p1 <- ggplot(虹膜) +
geom_point(aes(萼片长度,花瓣长度))+
stat_cor(映射= aes(萼片。长度,花瓣。长度))
p2 <- ggplotly(p1)
p2
【问题讨论】:
标签: r ggplot2 plotly ggplotly font-style