Y axis messed up in ggplot

Hello!
I'm having trouble plotting Temperature vs time using ggplot.


tell me if you see the picture.

Even avoiding overlapping the problem persists .

The code is the following:

df3<-IB_dat%>%mutate(timestamp=paste(Fecha,Hora) %>%
as.POSIXct(., format="%Y-%m-%d %H:%M:%S")) %>%select(timestamp,Temperatura)
summary(df3)

IB_dat$time<-df3$timestamp
IB_dat$Nido<-as.factor(IB_dat$Nido)
eggs<-subset(IB_dat, Tipo_ib=="Huevo")
tapa<-subset(IB_dat, Tipo_ib=="Tapa")
head(tapa)
str(df3)

qeggs<-ggplot(eggs, aes(x=time, y=Temperatura,color=Nido)) +geom_line()+ xlab("")+ylab("Incubation temperature")+mythema +scale_y_discrete(guide = guide_axis(check.overlap = TRUE))
print(qeggs)

It must be that your y variable, temperature is not numeric

This topic was automatically closed 42 days after the last reply. New replies are no longer allowed.

If you have a query related to it or one of the replies, start a new topic and refer back with a link.