Re: [R] combining rows

2011-09-04 Thread Kang Tu
Would you mind show us a simple example of your data? It is hard to understand your request directly from your text. If you just want to combine the data, you can try cbind() function directly, or you can use subset() function to get a subset of your data.frame. If you want to selectively aggrega

[R] How to change the default location of x-axis in ggplot2?

2010-12-22 Thread Kang Tu
Hi: In ggplot2, by default the x-axis is in the bottom of the graph and y-axis is in the left of the graph. I wonder if it is possible to: 1. put the x axis in the top, or put the y axis in the right? 2. display x axis in both the top and bottom? 3. display x axis in both sides, and each of them