Correct for missing values in a Stacked area plot using ggplot2
问题 I've been trying to recreate this post on a combination of stacked bar/area plot. I have some problems with missing values though. Here's my data: https://www.dropbox.com/sh/pnkspwnn1qslm6u/JapTKCwqMS What I run is; wa=read.table('wa_class.txt', sep="", header=F, na.string="0") names(wa)=c("Class","Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec") wam=melt(wa) wam$variablen=as.numeric(wam$variable) How it looks like > head(wam) Class variable value variablen 1