How can I plot the average using R Studio and can display the same with my dataset also presented in dimensional space? The mean is represented by this line and the data represented by dots. The code you are using is just for averaging .. wanted it to appear in the illustration
dados <- dbGetQuery(con, "select departure_hour, travel_segment_time from bartolomeumitre; dados.frame <- data.frame(dados); plot(dados.frame); xl <- with(dados.frame, travel_segment_time); mean(xl)