Okay so I'm trying to create a smooth line between 4 points to get a prediction on daily temperature change between the increase in seasonal temperature.
Temperature4.5 <- c(8.1, 6.6, 3.8, 6.7, 8.1)
DayNumber <- c(45, 105, 197, 288, 410)
med4.5 <- data.frame(Season, Temperature4.5, Date, DayNumber)
ggplot(data = med4.5, aes(x=DayNumber, y = Temperature4.5)) +
geom_point() +
geom_smooth(method = loess) +
scale_x_continuous(breaks = seq(45, 410, 1))
But when I use ggplot_build the x variables aren't whole numbers (days) but instead something like
45, 49.62025, 54.24051.... etc,
I need whole day numbers for every day for the x variable to the y variable.
How would I go about that?
I've already tried the above mentioned, so any steps forward would be a great help.