I have a large dataset of country's scale streamflow stations ordered as it is shown in the table. My experience in R language is beginner.
"CODE" represents streamflow stations name, and
"VAL" the streaflow value in m^3/sec.
All the timeseries for each of the stations ranges from 1/1/2002 to 31/12/2012.
Data Sample
I'd like to plot by selecting a specific "CODE" from the whole timeseries to see in line plot format the whole timeseries and as a second step to see a monthly analysis for this station in boxplot format. No colors or other ploting effects.
/edit
What I've tried till now is the following script
library("gdata")
library("ggplot2")
timeseries <- read.csv("C:\\Users\\G\\Documents\\R\\Projects\\...\\...\\....csv", header = T)
summary(timeseries)
plot(timeseries$VAL ~ timeseries$CODE, col="light blue", pch = 19 , srt=45)
ggplot(table) + geom_point(aes(x= DATE[1:4017], y = VAL [1:4017]))
and I took a composite boxplot for all the stations for the first plot
and the ggplot didn't worked
//Final edit number after scoa solution
library("gdata")
library("scales")
library("ggplot2")
timeseries<- read.csv("C:\\Users\\G\\Documents\\R\\Projects\\...\\...\\......csv", header = T)
timeseries$DATE <- as.Date(as.character( timeseries$DATE),format = "%d/%m/%Y")
ggplot(data= timeseries[timeseries$CODE == "StationA",]) + geom_point(aes(x= DATE, y = VAL)) + scale_x_date(breaks= date_breaks("1 month"))