I have a data frame and I am binding the rowids to the frame. When I try to plot the graph with rowIds on X axis, I see the values sorted alphabetically. How to plot the graph with Ids sorted numerically and display on X axis
rates<-data.frame(rates)
id <- rownames(rates)
rates <- cbind(id=id, rates)
meltedData2 <- melt(rates,id.vars="id", na.rm = TRUE)
cdf <- ggplot(meltedData2, aes(x=id,group=1))+geom_line(aes(y=value,colour=variable),stat="identity")