Re: [Rd] Wishlist: strwidth allow for rotation of text (PR#7931)

2005-06-11 Thread murdoch
[EMAIL PROTECTED] wrote:
> Hi,
> 
> This is not a bug, but an enhancement suggestion. "strwidth" only gives the 
> width of the text according to the x-axis user coordinates, and similarly 
> for "strheight". Even if the par setting "srt" is changed to rotate the 
> text, the resulting width (resp. height) is in terms of the non-rotated 
> text. Currently, if I want to know how much space to leave for vertical 
> text in the user coordinates, I manually invert the user coordinates, and 
> then change them back.
> 
> Even if arbitrary "srt" is too much, just having the option for 90 degree 
> rotation would be helpful. If it were implemented for arbitrary srt, then I 
> personally think it's x-axis and y-axis dimensions are of interest, and not 
> the actual length of the rotated text.

I think it's pretty standard to measure text this way.  You can get a 
very good approximation to arbitrary rotation by treating the text as a 
width by height rectangle, and using a bit of trig to calculation the 
rotated dimensions of that - but it's much harder to get the original 
dimensions back after doing this.

So I'd suggest that you should write a little function to calculate 
rotated dimensions, document it, and offer it to one of the Misc 
collections.

If you want to waste a lot of time on it you could try to do it in a way 
that can tell the difference between "Ay" and "yA" after a 45 degree 
rotation (the first is wider), but I think it will be hard to get that 
right.

Duncan Murdoch

__
R-devel@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-devel


[Rd] Slovenian translation strings for R "installation programs"

2005-06-11 Thread Gorjanc Gregor
Hello!

These would be Slovenian translations. I hope that all characters
will be displayed OK; note that there are three letters with carons
(actually only two are used in these translations): 
 - c with carron as "č"
 - s with carron as "š"
 - z with carron as "ž"
For more look at .

en.regentries=Registry entries:
sl.regentries=Vnosi v registru:

en.associate=Associate R with .RData files
sl.associate=Poveži datoteke .RData z R

en.dcom=Register R path for use by the (D)COM server
sl.dcom=Registriraj pot R s strežnikom (D)COM 

en.user=User installation
sl.user=Uporabniška namestitev

en.compact=Minimal user installation
sl.compact=Najmanjša uporabniška namestitev

en.full=Full installation
sl.full=Polna namestitev

en.CJK=Chinese/Japanese/Korean installation
sl.CJK=Kitajska/Japonska/Korejska namestitev

en.custom=Custom installation
sl.custom=Prikrojena namestitev

Lep pozdrav / With regards,
Gregor Gorjanc

--
University of Ljubljana
Biotechnical FacultyURI: http://www.bfro.uni-lj.si/MR/ggorjan
Zootechnical Department mail: gregor.gorjanc  bfro.uni-lj.si
Groblje 3   tel: +386 (0)1 72 17 861
SI-1230 Domzale fax: +386 (0)1 72 17 888
Slovenia, Europe
--
"One must learn by doing the thing; for though you think you know it,
 you have no certainty until you try." Sophocles ~ 450 B.C.

__
R-devel@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-devel


[Rd] typo in ?lowess

2005-06-11 Thread Tobias Verbeke
In the `See Also' section of ?lowess, I read

 'loess'), a newer formula based version [...]
   ^^^

Tobias

__
R-devel@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-devel


Re: [Rd] typo in ?lowess

2005-06-11 Thread Duncan Murdoch
Tobias Verbeke wrote:
> In the `See Also' section of ?lowess, I read
> 
>  'loess'), a newer formula based version [...]


Fixed, thanks.

Duncan Murdoch

__
R-devel@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-devel


Re: [Rd] single assignment affecting multiple sub-structures (PR#7924)

2005-06-11 Thread Tony Plate
Yes, actually, I have had code using do.call() that returns the result I 
want working for years.  However, I've been trying to reduce the memory 
usage of my code, and I discovered that in S-PLUS, do.call() appears to 
make a extra copy of its arguments.  When the arguments are very large, 
this can be important.  I found that by constructing a call like the one 
below, and eval()ing it, S-PLUS would not make unnecessary copies of the 
arguments.

However, when I tried the same code in R, I found the bug that I 
described below.

-- Tony Plate

Douglas Bates wrote:
> I hesitate to make such as simplistic suggestion but have you
> considered using do.call to generate the call?
> 
> On 6/9/05, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
> 
>>I'm trying to create a language structure that is a call to a function
>>with a number of arguments that is only known at run time.  I do this by
>>using repeated indices to expand out a call with a single argument.
>>However, when I change one of the arguments, all are changed.
>>
>>I don't see the same behavior when I initially create a call with
>>multiple arguments.
>>
>>Even more strangely, calling identical(call1, call2) before any attempts
>>to modify the structures changes the subsequent behavior to be correct.
>>
>>[If there are better methods to create and modify calls, please let me
>>know!]
>>
>> > # Example of commands that give incorrect results
>> > call1 <- Quote(f(arg[[1]], arg[[1]], arg[[1]]))
>> > call2 <- Quote(f(arg[[1]]))[c(1,2,2,2)]
>> > call1
>>f(arg[[1]], arg[[1]], arg[[1]])
>> > call2
>>f(arg[[1]], arg[[1]], arg[[1]])
>> > call1[[3]][[3]] <- 2
>> > call2[[3]][[3]] <- 2
>> > call1
>>f(arg[[1]], arg[[2]], arg[[1]])
>> > # note that all the arguments of call2 have changed!
>> > call2
>>f(arg[[2]], arg[[2]], arg[[2]])
>> > identical(call1, call2)
>>[1] FALSE
>> >
>> > # if we do 'identical(call1, call2)' directly
>> > # after creation, then everything behaves correctly !??
>> > call1 <- Quote(f(arg[[1]], arg[[1]], arg[[1]]))
>> > call2 <- Quote(f(arg[[1]]))[c(1,2,2,2)]
>> > identical(call1, call2)
>>[1] TRUE
>> > call1
>>f(arg[[1]], arg[[1]], arg[[1]])
>> > call2
>>f(arg[[1]], arg[[1]], arg[[1]])
>> > call1[[3]][[3]] <- 2
>> > call2[[3]][[3]] <- 2
>> > call1
>>f(arg[[1]], arg[[2]], arg[[1]])
>> > call2
>>f(arg[[1]], arg[[2]], arg[[1]])
>> > identical(call1, call2)
>>[1] TRUE
>> >
>> > # The same thing happens when the call is created using 'call()'
>> > call3 <- call("f", call("[[", as.name("arg"), 1))[c(1,2,2,2)]
>> > call3
>>f(arg[[1]], arg[[1]], arg[[1]])
>> > call3[[3]][[3]] <- 2
>> > call3
>>f(arg[[2]], arg[[2]], arg[[2]])
>> >
>> > version
>>  _
>>platform i386-pc-mingw32
>>arch i386
>>os   mingw32
>>system   i386, mingw32
>>status
>>major2
>>minor1.0
>>year 2005
>>month04
>>day  18
>>language R
>> >
>>
>>
>>I also see the same behavior in the development release of R:
>> > version
>>  _
>>platform i386-pc-mingw32
>>arch i386
>>os   mingw32
>>system   i386, mingw32
>>status   Under development (unstable)
>>major2
>>minor2.0
>>year 2005
>>month06
>>day  07
>>svn rev  34588
>>language R
>> >
>>
>>-- Tony Plate
>>
>>__
>>R-devel@stat.math.ethz.ch mailing list
>>https://stat.ethz.ch/mailman/listinfo/r-devel
>>
> 
>

__
R-devel@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-devel


[Rd] italic (PR#7932)

2005-06-11 Thread ggrothendieck
Full_Name: G. Grothendieck
Version: R version 2.1.0, 2005-05-14
OS: Windows XP
Submission from: (NULL) (216.59.254.207)


This code:

> plot(1:10)
> text(5,5,lab=expression(italic(22*"33")))

has the effect of italicizing 33 (which is a character string) but not 22
(which is not).  I would have thought that both, not just 33, would be
italicized.

I had previously posted about this last week:

https://www.stat.math.ethz.ch/pipermail/r-devel/2005-June/033526.html

however, no one responded.

__
R-devel@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-devel


Re: [Rd] Wishlist: axis( ) could take vector of colors (PR#7930)

2005-06-11 Thread ligges
[EMAIL PROTECTED] wrote:

> Hi,
> This is not a bug, but a simple enhancement suggestion: that axis( ) also 
> allow option "col" to take a vector of colors equal to the length of 
> "labels". Currently it allows it, in the sense that there is no error 
> message, but the function will use just the first element of the vector.
> 
> Example
>  > plot(1:5,exp(1:5),axes=F,type="o")
>  > axis(1,col=c(rep("red",2),rep("blue",3)))
> gives all red axis notation.


A color of length > 1 does not make sense here, from my point of view. 
Hence I'd like to object here.
It might make sense for argument "col.axis", but this is very hard to 
implement due to the internal structure of automatical tick mark 
calculations.

Most easily you can use mtext() to annotate an un-annotated axis with 
different colors as in:

  plot(1:10, xaxt="n")
  axis(1, at=c(2,5,8), labels=rep("", 3))
  mtext(c(2,5,8), side=1, at=c(2,5,8),
col=c("red", "green", "blue"), line=0.5)


Uwe Ligges



> Thanks,
> Elizabeth Purdom
> (Windows XP, R 2.1.0)
> 
> __
> R-devel@r-project.org mailing list
> https://stat.ethz.ch/mailman/listinfo/r-devel

__
R-devel@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-devel


[Rd] Using Rserve

2005-06-11 Thread D0c
Hey is there a more consistent way of  connecting to Rserve. I have
code that opens a connection to Rserve by executing explicitly using
Java runtime ( "C:\Program Files\R\r20XXX\Rserve.exe" ).
However when i run the app and attempt to connect, it does not connect
imediately.I have to close the app and open it again for a few times
before i get a connection.
Am i doing something wrong?

__
R-devel@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-devel


[Rd] FW: Slovenian translation strings for R "installation programs"

2005-06-11 Thread Gorjanc Gregor
Hello again!

I appologize for repost, but I got some "corrections/suggestions" from
a local translation team. Look bellow.

>-Original Message-
>From: Gorjanc Gregor
>Sent: sob 2005-06-11 13:52
>To: r-devel@stat.math.ethz.ch
>Subject: Slovenian translation strings for R "installation programs"
> 
>Hello!
>
>These would be Slovenian translations. I hope that all characters
>will be displayed OK; note that there are three letters with carons
>(actually only two are used in these translations): 
> - c with carron as "č"
> - s with carron as "š"
> - z with carron as "ž"
>For more look at .
>
>en.regentries=Registry entries:
>sl.regentries=Vnosi v registru:
>
>en.associate=Associate R with .RData files
>sl.associate=Poveži datoteke .RData z R
>
>en.dcom=Register R path for use by the (D)COM server
>sl.dcom=Registriraj pot R s strežnikom (D)COM 

sl.dcom=Registriraj pot do R za strežnik (D)COM 

>
>en.user=User installation
>sl.user=Uporabniška namestitev
>
>en.compact=Minimal user installation
>sl.compact=Najmanjša uporabniška namestitev
>
>en.full=Full installation
>sl.full=Polna namestitev
>
>en.CJK=Chinese/Japanese/Korean installation
>sl.CJK=Kitajska/Japonska/Korejska namestitev

sl.CJK=Namestitev v kitajskem/japonskem/korejskem jeziku

>
>en.custom=Custom installation
>sl.custom=Prikrojena namestitev

sl.custom=Namestitev po meri

Lep pozdrav / With regards,
Gregor Gorjanc

--
University of Ljubljana
Biotechnical FacultyURI: http://www.bfro.uni-lj.si/MR/ggorjan
Zootechnical Department mail: gregor.gorjanc  bfro.uni-lj.si
Groblje 3   tel: +386 (0)1 72 17 861
SI-1230 Domzale fax: +386 (0)1 72 17 888
Slovenia, Europe
--
"One must learn by doing the thing; for though you think you know it,
 you have no certainty until you try." Sophocles ~ 450 B.C.

__
R-devel@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-devel


Re: [Rd] FW: Slovenian translation strings for R "installation programs"

2005-06-11 Thread Prof Brian Ripley
Thanks for the translations.

I am having some trouble with charsets (the installer has to be built
from files containing about 6 different ones).  The version now in is your 
first one.  I will try to update it by Monday, but I need to reboot my 
Windows machine every time I change languages so this gets very tedious.

On Sat, 11 Jun 2005, Gorjanc Gregor wrote:

> Hello again!
>
> I appologize for repost, but I got some "corrections/suggestions" from
> a local translation team. Look bellow.
>
>> -Original Message-
>> From: Gorjanc Gregor
>> Sent: sob 2005-06-11 13:52
>> To: r-devel@stat.math.ethz.ch
>> Subject: Slovenian translation strings for R "installation programs"
>>
>> Hello!
>>
>> These would be Slovenian translations. I hope that all characters
>> will be displayed OK; note that there are three letters with carons
>> (actually only two are used in these translations):
>> - c with carron as ""
>> - s with carron as "a"
>> - z with carron as "~"
>> For more look at .
>>
>> en.regentries=Registry entries:
>> sl.regentries=Vnosi v registru:
>>
>> en.associate=Associate R with .RData files
>> sl.associate=Pove~i datoteke .RData z R
>>
>> en.dcom=Register R path for use by the (D)COM server
>> sl.dcom=Registriraj pot R s stre~nikom (D)COM
>
> sl.dcom=Registriraj pot do R za stre~nik (D)COM
>
>>
>> en.user=User installation
>> sl.user=Uporabniaka namestitev
>>
>> en.compact=Minimal user installation
>> sl.compact=Najmanjaa uporabniaka namestitev
>>
>> en.full=Full installation
>> sl.full=Polna namestitev
>>
>> en.CJK=Chinese/Japanese/Korean installation
>> sl.CJK=Kitajska/Japonska/Korejska namestitev
>
> sl.CJK=Namestitev v kitajskem/japonskem/korejskem jeziku
>
>>
>> en.custom=Custom installation
>> sl.custom=Prikrojena namestitev
>
> sl.custom=Namestitev po meri
>
> Lep pozdrav / With regards,
>Gregor Gorjanc
>
> --
> University of Ljubljana
> Biotechnical FacultyURI: http://www.bfro.uni-lj.si/MR/ggorjan
> Zootechnical Department mail: gregor.gorjanc  bfro.uni-lj.si
> Groblje 3   tel: +386 (0)1 72 17 861
> SI-1230 Domzale fax: +386 (0)1 72 17 888
> Slovenia, Europe
> --
> "One must learn by doing the thing; for though you think you know it,
> you have no certainty until you try." Sophocles ~ 450 B.C.
>
> __
> R-devel@r-project.org mailing list
> https://stat.ethz.ch/mailman/listinfo/r-devel
>
>

-- 
Brian D. Ripley,  [EMAIL PROTECTED]
Professor of Applied Statistics,  http://www.stats.ox.ac.uk/~ripley/
University of Oxford, Tel:  +44 1865 272861 (self)
1 South Parks Road, +44 1865 272866 (PA)
Oxford OX1 3TG, UKFax:  +44 1865 272595

__
R-devel@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-devel


[Rd] Simple antidotes pur.chase, brings greater financial gains. (PR#7933)

2005-06-11 Thread dratinos
Select from a wide variety of brand name and generic curatives. It is lawful
to pur.chase from our appraised chemist zones.

We distribute customers quick medz on Soreness, ErectionDysfunction,
Sleeping Disorders, Raised Cholesterin, Diabetes and other problems.
We create a cyber world where customers can experience complete convenience
brought by expeditious carriage work.
Review our storespace and you will unearth how much you can gain at our
storespace.
On our medizone, your casenotes will be reviewed by advisers for gratis.


http://ikd.D.findthecreator.com/tny/
Seek for the best deals on tablets at our chemistplace novv!


 race at this moment to be quite Every one capable of thinking felt the
advantage of the idea, 
the warm and faithful feelings of any of my fellow-creatures! 
 certain whether they had re ason to feel obliged to
 us for doing so, or the reverse - and in a moment (it was all done in
rapid moments) Captain Benwick had 
 and then made our way home to  5 Mr. Peggotty's dwelling. We stop 5 ped
under the lee of  the lobster-outhou

__
R-devel@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-devel


Re: [Rd] FW: Slovenian translation strings for R "installation programs"

2005-06-11 Thread Gabor Grothendieck
On 6/11/05, Prof Brian Ripley <[EMAIL PROTECTED]> wrote:
> Thanks for the translations.
> 
> I am having some trouble with charsets (the installer has to be built
> from files containing about 6 different ones).  The version now in is your
> first one.  I will try to update it by Monday, but I need to reboot my
> Windows machine every time I change languages so this gets very tedious.

I believe that each user you have set up on Windows XP
can have a different language so just set up multiple users, one per
language and you won't have to reboot.

__
R-devel@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-devel