Re: [R] ggplot boxplot - how to order categories

2008-08-25 Thread Raj Minhas
Hadley, Many thanks - I have just started using ggplot and it is an amazing package. -Raj. -- View this message in context: http://www.nabble.com/ggplot-boxplot---how-to-order-categories-tp19147920p19148953.html Sent from the R help mailing list archive at Nabble.com. ___

[R] ggplot scale_size - is there any way to specify breaks?

2008-08-25 Thread Raj Minhas
Hi, I am plotting scores for students in a school using a command of the form qplot(x=Subject, y=Student, data=dataset, geom="point", size=Score) It lists the Subject factors on the x-axis and the Student factors on the y-axis - dots proportional to the Score are plotted at the resultant grid.

[R] ggplot boxplot - how to order categories

2008-08-25 Thread Raj Minhas
I am interested in creating a boxplot using ggplot or qplot where I can specify the order of the categories being plotted on the x-axis. For example, the following command plots the categories (diamond color) in alphabetic order (D, E, ..., J): qplot(color, price/carat, data=diamonds, geom="boxpl