Im having trouble creating time series plot from the excel data

library(mclust, quietly = TRUE)
data_frame <- read.csv(paste0(rootaddress, 'Site A-2008.csv'))
winter <- as.numeric(data_frame[(4:2020),8])
plot(winter, main ="January 1 - January 8", xlab = "days", ylab = "Wind Speed (m/s)", type ="l")
So, what I am trying to do is have the y axis be the wind speed and the x axis be the date which should be limit to 1-8 days. Whenever I try to do the command xlim = c(1,8), the graph levels out .


To help us help you, could you please prepare a reproducible example (reprex) illustrating your issue? Please have a look at this guide, to see how to create one:

This topic was automatically closed 21 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.