Re: [R] TeachingDemos question: my.symbols() alignment problems in complicated layout

From: <maria_at_meteo.mcgill.ca>
Date: Mon, 21 Jul 2008 10:23:05 -0400 (EDT)

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/
>



R-help_at_r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code. Received on Mon 21 Jul 2008 - 14:26:35 GMT

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.2.0, at Mon 21 Jul 2008 - 15:02:01 GMT.

Mailing list information is available at https://stat.ethz.ch/mailman/listinfo/r-help. Please read the posting guide before posting to the list.

list of date sections of archive