I am using ggplot2
package to plot a stacked area of species abundance.
My code:
#Aggragate 2 column
x=IBTS[,3:4]
Datehour=paste(IBTS$Date.,IBTS$Time.)
Date<-strptime(Datehour,"%d/%m/%Y %H:%M")
#Add a new column with the date
IBTS$Date
IBTS<-cbind(IBTS,Date)
#Plotting the data
p<-ggplot(IBTS,aes(x=Date,y=Number.of.Particles.))
p+geom_area(aes(fill=Selection.set.),position="stack")+
theme_bw()+ scale_fill_brewer(palette="Blues")
I obtain this plot:
I have a simply question: On Janv. 30, I have NA values on my dataframe but these values are not considered in my plot.
Does anyone have any idea?