按照
有人可以幫我語法嗎?為什么它不為我生成傳奇?
uj5u.com熱心網友回復:
要獲得圖例,您必須在美學上進行映射,即在您的情況下,您必須在以下位置進行映射linetype:
library(nlme)
library(ggeffects)
library(ggplot2)
library(ggplot2)
ggplot()
geom_line(data = pred.mmlowW, aes(x = x, y = predicted, linetype = "pred.mmlowW"))
geom_line(data = pred.mmhighW, aes(x = x, y = predicted, linetype = "pred.mmhighW"))
xlim(0.01, 0.2)
ylim(30, 150)
labs(title = "")
ylab(bquote("Total Surface Energy "(mJ / m^2)))
xlab(bquote("Surface Coverage "(n / n[m])))
theme_minimal()
scale_linetype_manual(
name = "New Legend Title",
values = c("solid", "dashed"),
breaks = c(
"pred.mmlowW",
"pred.mmhighW"
),
labels = c(
"wettable soil, 0% relative humidity",
"water-repellent soil, 0% relative humidity"
)
)

轉載請註明出處,本文鏈接:https://www.uj5u.com/yidong/474392.html
