Re: [R] order in stacked barplot

2012-11-13 Thread John Kane
sets, you can just supply a representative sample. Usually, dput(head(testfile, 100)) will be sufficient. John Kane Kingston ON Canada > -Original Message- > From: kay.lue...@uni-rostock.de > Sent: Mon, 12 Nov 2012 09:01:40 -0800 (PST) > To: r-help@r-project.org &

Re: [R] order in stacked barplot

2012-11-12 Thread Jeff Newmiller
Posting guide warns you to provide a reproducible example, which would include enough data to test code. As a general point of information I can say that data ordering in R graphs is normally driven by the factor level ordering, and you usually have to specify that explicitly when you convert f

[R] order in stacked barplot

2012-11-12 Thread kay
Hello i did a stacked barplot using ggplot and R arranged the bars of the items in different orders. i don“t know why. but i want to have the same order in every stacked bar. I used the code data1 <- read.table("N_O_W_MAI.txt", header=TRUE, dec = ",") attach(data1) Teich1<-factor(Teich,levels=c(