[R] TeachingDemos question: my.symbols() alignment problems in complicated layout
maria at meteo.mcgill.ca
maria at meteo.mcgill.ca
Mon Jul 21 16:23:05 CEST 2008
Hi Hadley and Paul,
thank you a lot for the suggestions...
However, i had also emailed Greg Snow (author of my.symbols() function)
personally... and Greg has emailed me back with a fixed version of the
my.symbols() function -- to be included in the next release -- that works
without a hitch with layout()...
I am not posting it here, as i don't know if i am allowed...
Cheers,
Maria
>> Here are a couple of options:
>>
>> (i) use the 'gridBase' package and do these arrow annotations using the
>> 'grid' package, which allows you to control coordinate systems in a more
>> rational manner. There's an example (perhaps slightly more complicated
>> than you need) in:
>> http://cran.r-project.org/doc/Rnews/Rnews_2003-2.pdf
>>
>> (ii) draw your main plot using 'lattice' and the annotations using
>> 'grid' or possibly 'grImport'. There's a hint of an example of the
>> latter on slide 18 of:
>> http://www.stat.auckland.ac.nz/~paul/Talks/import.pdf
>>
>> (iii) draw the whole thing using 'grid'. You can start to get
>> acquainted with grid here:
>> http://www.stat.auckland.ac.nz/~paul/RGraphics/chapter5.pdf
>
> (iv) Use ggplot2 - particularly geom_segment
> (http://had.co.nz/ggplot2/geom_segment.html) and stat_spoke
> (http://had.co.nz/ggplot2/stat_spoke.html)
>
> Hadley
>
> --
> http://had.co.nz/
>
More information about the R-help
mailing list