2
how can I plot the average using R Studio and be able to display it with my data set also displayed in dimensional space? The average is represented by this line and the data represented by dots. The code I’m using is just for average calculation.. I 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)
You can post the code you are using to plot the data in dimensional space?
– Victor Stafusa
What is to plot the mean?
– Daniel Falbel
Hi Daniel, I would like the average value to appear in space (x,y) along with the data. I will try to insert an image in the initial question to be clearer.
– Samara