Re: [R] ggplot2 question: keeping the order as in the input data

2013-10-30 Thread Dimitri Liakhovitski
ware > wdunlap tibco.com > > > > -Original Message- > > From: r-help-boun...@r-project.org [mailto:r-help-boun...@r-project.org] > On Behalf > > Of Dimitri Liakhovitski > > Sent: Wednesday, October 30, 2013 7:35 AM > > To: r-help > > Subject: [R] ggplot2 ques

Re: [R] ggplot2 question: keeping the order as in the input data

2013-10-30 Thread William Dunlap
> -Original Message- > From: r-help-boun...@r-project.org [mailto:r-help-boun...@r-project.org] On > Behalf > Of Dimitri Liakhovitski > Sent: Wednesday, October 30, 2013 7:35 AM > To: r-help > Subject: [R] ggplot2 question: keeping the order as in the input data >

[R] ggplot2 question: keeping the order as in the input data

2013-10-30 Thread Dimitri Liakhovitski
Hello! I am using ggplot2 (see the code below) to plot the data in 'myplotdata'. The first column of 'myplotdata' is called "att.levels" and contains strings; the second column is called "WTP" and contains numeric values. Notice - I use 'coord.flip()' The command aes(x=att_levels, y=WTP), if I un