I am pretty new to R, and I've tried plotting some simple time-series weather data.
I have daily data for 30 years starting in 1987. However, when I plot the graph, it is only showing the final years of my series. What can I do for it to show the full series?
Here is the code I've used:
library(ggplot2)
options(stringsAsFactors = FALSE)
gamboa <- read.csv("D:/Gamboa.csv")
gamboa$Date <- as.Date(gamboa$Date,
format = "%m/%d/%y")
class(gamboa$Date)
ggplot(data = gamboa, aes(x = Date, y = Tx2m)) +
geom_point() +
labs(x = "Date",
y = "tmp max)",
title = "tmp max Data",
subtitle = "gamboa")