df <- read_excel("n.xlsx")
df
ggplot(df,aes(time,T1))+
geom_point(col="black",size=2,pch=15)+
xlim(1,11)+
ylim(1,5)
Error: Discrete value supplied to continuous scale
你的"df"数据框中的"T1"列是离散值,而你使用了连续比例尺,你可以使用as.numeric()函数将"T1"列转换为数值型数据。在ggplot()函数中使用aes(time, as.numeric(T1))来确保使用连续比例尺。