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 has individual scales? Any idea is wellcome. Thank you! Kang
How to change the default location of x-axis in ggplot2?
2 messages · Kang Tu, Hadley Wickham
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?
These are on the to do list.
3. display x axis in both sides, and each of them has individual scales?
ggplot2 will never support this because I think it's a really really bad idea. Hadley
Assistant Professor / Dobelman Family Junior Chair Department of Statistics / Rice University http://had.co.nz/