Re: [R] scalable delimiters in plotmath

2010-09-12 Thread baptiste auguie
Thanks everyone. I've also had a look at plotmath.c where bgroup is defined for [, {, (, . but not . It seems quite trivial to add it, at first sight, however there is a part that I don't understand in the RenderDelim routine, static BBOX RenderDelim(int which, double dist, int draw, mathContext

Re: [R] scalable delimiters in plotmath

2010-09-12 Thread David Winsemius
On Sep 12, 2010, at 6:15 AM, baptiste auguie wrote: Thanks everyone. I've also had a look at plotmath.c where bgroup is defined for [, {, (, . but not . It seems quite trivial to add it, at first sight, however there is a part that I don't understand in the RenderDelim routine, static BBOX

Re: [R] scalable delimiters in plotmath

2010-09-12 Thread baptiste auguie
Oh, right I see. I was completely off then. Maybe it's not so easy to add delimiters after all, I'll have to look at the list of symbol pieces to see if these can be constructed too. Thanks, baptiste On 12 September 2010 21:42, David Winsemius dwinsem...@comcast.net wrote: On Sep 12, 2010,

Re: [R] scalable delimiters in plotmath

2010-09-12 Thread Paul Murrell
Hi On 13/09/2010 7:57 a.m., baptiste auguie wrote: Oh, right I see. I was completely off then. Maybe it's not so easy to add delimiters after all, I'll have to look at the list of symbol pieces to see if these can be constructed too. The plotmath stuff assumes a font with an Adobe Symbol

Re: [R] scalable delimiters in plotmath

2010-09-12 Thread baptiste auguie
I see, thanks. Looking at this table I guess the short answer is no, these cannot be made to scale and the only ones that could have already been implemented in bgroup(). Thanks, baptiste On 12 September 2010 22:11, Paul Murrell p.murr...@auckland.ac.nz wrote: Hi On 13/09/2010 7:57 a.m.,

Re: [R] scalable delimiters in plotmath

2010-09-12 Thread David Winsemius
On Sep 12, 2010, at 4:11 PM, Paul Murrell wrote: Hi On 13/09/2010 7:57 a.m., baptiste auguie wrote: Oh, right I see. I was completely off then. Maybe it's not so easy to add delimiters after all, I'll have to look at the list of symbol pieces to see if these can be constructed too. The

Re: [R] scalable delimiters in plotmath

2010-09-11 Thread baptiste auguie
What do people use to show angle brackets in R graphics? Have I missed something obvious? Thanks, baptiste On 9 September 2010 17:57, baptiste auguie baptiste.aug...@googlemail.com wrote: Dear list, I read in ?plotmath that I can use bgroup to draw scalable delimiters such as [ ] and ( ).

Re: [R] scalable delimiters in plotmath

2010-09-11 Thread Dennis Murphy
Hi Baptiste, You need to use the symbol(\nnn) concept, where nnn denotes the octal symbol number. For it's 074 and for it's 076. This little test seemed to work: plot(1, 1, main = expression(symbol(\074)~'x, y'~symbol(\076))) HTH, Dennis On Sat, Sep 11, 2010 at 10:01 AM, baptiste auguie

Re: [R] scalable delimiters in plotmath

2010-09-11 Thread Peter Ehlers
On 2010-09-11 16:14, Dennis Murphy wrote: Hi Baptiste, You need to use the symbol(\nnn) concept, where nnn denotes the octal symbol number. For it's 074 and for it's 076. This little test seemed to work: plot(1, 1, main = expression(symbol(\074)~'x, y'~symbol(\076))) HTH, Dennis It's a

Re: [R] scalable delimiters in plotmath

2010-09-11 Thread David Winsemius
On Sep 11, 2010, at 9:00 PM, Peter Ehlers wrote: On 2010-09-11 16:14, Dennis Murphy wrote: Hi Baptiste, You need to use the symbol(\nnn) concept, where nnn denotes the octal symbol number. For it's 074 and for it's 076. This little test seemed to work: plot(1, 1, main =

[R] scalable delimiters in plotmath

2010-09-09 Thread baptiste auguie
Dear list, I read in ?plotmath that I can use bgroup to draw scalable delimiters such as [ ] and ( ). The same technique fails with however, and I cannot find a workaround, grid.text(expression(bgroup(,atop(x,y),))) Error in bgroup(, atop(x, y), ) : invalid group delimiter Regards, baptiste