r - How do you extract what units ggplot2 is using for its coordinates? -


this silly, can't person has problems aligning annotations ggplot2 graphics.

i can't use gridbase because i'm trying automate complex , repetitious plotting task, need @ coordinates programmatically, , pass them parameters annotate before grobs plotted.

ggplot has access information. there's got way me well!

i'm surprise important cleanly annotating plots isn't deliberately exposed ggplot2 begin with.

the coordinates - or x , y scales - set when generating final plot. hadley used term "training". means have have plotted, either grob or device, before ggplot knows scales.

instead, can explicitly tell ggplot extend of axis, either coord_cartesian or xlim. this, can use range , pretty functions determine extent nice rounding.


Comments

Popular posts from this blog

ios - iPhone/iPad different view orientations in different views , and apple approval process -

java Extracting Zip file -

C# WinForm - loading screen -