ggplot rank stack bar automatically.
No.... I'm talking about changing the order (the first part of your question). What you see as dates on the axis aren't actually "Date"s (in the sense of the R class of that name) but rather factors. To R they are just labelled categories so it just uses an arbitrary order to plot them: if you change that order, you'll change the way they are plotted. Ista shows you how to do that. About the "\" problem, for now, the best advice is "don't worry about it" they won't be there on your plots. Run this and you'll see what I mean: plot(1:5, main = "Foo\\nBar") The real answer involves escape characters, if you want to look into it more. Michael
On Thu, Feb 16, 2012 at 3:57 AM, vd3000 <vd3000 at yahoo.co.uk> wrote:
Hi, Micheal, Are you talking about the recode for eliminating "\" problem? I think I am looking for how to eliminate it when I import the data file... THAnks. VD. -- View this message in context: http://r.789695.n4.nabble.com/ggplot-rank-stack-bar-automatically-tp4391042p4393328.html Sent from the R help mailing list archive at Nabble.com.
______________________________________________ R-help at r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code.