[R] Manual to learn TCL - TK

2008-09-19 Thread ermimi

Hello!
Anybody knows any manual to learn TCL - TK? I need it to finish my finsish
projet.

Thank you for your answer
-- 
View this message in context: 
http://www.nabble.com/Manual-to-learn-TCL---TK-tp19579869p19579869.html
Sent from the R help mailing list archive at Nabble.com.

__
R-help@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.


[R] Position WINDOWS TKTOPLEVEL

2008-09-19 Thread ermimi

Hello friends!!!

I´m spanish student, I am finishing the finish project in computer science.
I am creating a R package about CircularStatistics, In october i will upload
it to CRAN. I need to resolve one problem. 
I need to put a windows created with tktoplevel into screen center.
How I could put the windows created in the center of the screen?

I have created the windows with next sentences

tt <- tktoplevel(width="2000",height="300")

Thank you very much,
A greetings, Luismi 
-- 
View this message in context: 
http://www.nabble.com/Position-WINDOWS-TKTOPLEVEL-tp19577290p19577290.html
Sent from the R help mailing list archive at Nabble.com.

__
R-help@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.


Re: [R] Interpolation Function f(y)

2008-09-04 Thread ermimi

Thank you very much, You have helped me to resolve the problem. 
Thank you!!

A greetings, Luismi




Henrique Dallazuanna wrote:
> 
> I think that you can use the splinefun function:
> 
> f <- splinefun(x, y)
> 
> f(15)
> 
> On Thu, Sep 4, 2008 at 1:52 PM, ermimi <[EMAIL PROTECTED]> wrote:
> 
>>
>> Hello friends!!!
>>
>> I have a list of values called y.
>> The list is y=c(221.0, 212.0, 206.0, 202.7, 198.4, 195.1, 192.2, 189.7,
>> 187.6, 185.8);
>> y is f(x) and x=c(10,20,30,40,50,60,70,80,90,100).
>>
>> I only have x and y. I don´t know f(x). I would like interpolate f(x) to
>> obtain other values as f(15), f(25), f(35) and if it was possible obtain
>> f(110), f(120).
>>
>> is there any function that allow me obtain this values??
>>
>> Thank you very much, Luismi
>>
>>
>>
>>
>> --
>> View this message in context:
>> http://www.nabble.com/Interpolation-Function-f%28y%29-tp19314985p19314985.html
>> Sent from the R help mailing list archive at Nabble.com.
>>
>> __
>> R-help@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.
>>
> 
> 
> 
> -- 
> Henrique Dallazuanna
> Curitiba-Paraná-Brasil
> 25° 25' 40" S 49° 16' 22" O
> 
>   [[alternative HTML version deleted]]
> 
> 
> __
> R-help@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.
> 
> 

-- 
View this message in context: 
http://www.nabble.com/Interpolation-Function-f%28y%29-tp19314985p19315377.html
Sent from the R help mailing list archive at Nabble.com.

__
R-help@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.


[R] Interpolation Function f(y)

2008-09-04 Thread ermimi

Hello friends!!!

I have a list of values called y.
The list is y=c(221.0, 212.0, 206.0, 202.7, 198.4, 195.1, 192.2, 189.7,
187.6, 185.8);
y is f(x) and x=c(10,20,30,40,50,60,70,80,90,100). 

I only have x and y. I don´t know f(x). I would like interpolate f(x) to
obtain other values as f(15), f(25), f(35) and if it was possible obtain
f(110), f(120).

is there any function that allow me obtain this values??

Thank you very much, Luismi




-- 
View this message in context: 
http://www.nabble.com/Interpolation-Function-f%28y%29-tp19314985p19314985.html
Sent from the R help mailing list archive at Nabble.com.

__
R-help@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.


[R] Help to Text Windoes in Menu with TCL-TK

2008-07-26 Thread ermimi

Hello Friends!!
I need a little help in a Text Windows in my Menu in TCL-TK.

I have created a Text Windows with this sentences:

require(tcltk)
tt  <- tktoplevel()
txt <- tktext(tt,bg="white",font="courier")
tkgrid(txt)
tkinsert(txt,"end","Hello, world!")
tkfocus(txt)

I need clear de Text Windows to write new text.

I would like that you help me because I´m finished my proyect and it´s is
the only problem that i need to resolve.

Thank you very much, A greetings, Luismi

-- 
View this message in context: 
http://www.nabble.com/Help-to-Text-Windoes-in-Menu-with-TCL-TK-tp18665216p18665216.html
Sent from the R help mailing list archive at Nabble.com.

__
R-help@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.


Re: [R] Draw Polygon with a Circular Side

2008-05-20 Thread ermimi

Thank you very much Jim for you help!!Your help was my need!!
I have create this function to draw a polygon with a circular side

 DrawPortion<-function(init,finish,length_){
plot(0,xlim=c(-10,10),ylim=c(-10,10),xlab="",ylab="",type="n",axes=TRUE)

   
polygon(c(0,length_*cos(seq(ToRadians(finish),ToRadians(init),length.out=50))),
   
c(0,length_*sin(seq(ToRadians(finish),ToRadians(init),length.out=50))),
border="#ff",col="#66ee33") 
   }


ToRadians<-function(grades){
radians=(grades/180*pi);
return(radians);
}

Thank you very much Jim

A Greetings Luismi


Jim Lemon-2 wrote:
> 
> ermimi wrote:
>> Hello Friends!!!
>> 
>> I would want draw a circular histogram, and I would like draw a polygon
>> with
>> a circular side. This is easy if I use the functions polygon and arc, but
>> I
>> want that the polygon with a circular side have background colour. The
>> polygon created with function polygon can have background colour, but the
>> surface created with function arc can´t have background colour.
>> How I could create a polygon with a circular side that have background
>> colour?? 
>> Thank you very much,  
>> A greetings Luismi
> 
> Hi Luismi,
> The phrase "circular histogram" brings to mind something like a wind 
> rose. There are a few you could try:
> 
> windrose in the oce and circular packages
> 
> rosavent in the climatol package
> 
> oz.windrose in the plotrix package
> 
> and perhaps rose in the IDPmisc package
> 
> Now about this "polygon with a circular side". I think you mean the 
> standard issue polygon like a rectangle except that one side is a 
> circular arc instead of a straight line. If this bold conjecture is 
> correct, here is an example for you:
> 
> plot(0,xlim=c(-1,1),ylim=c(-1,1),xlab="",ylab="",
>   type="n",axes=FALSE)
> polygon(c(0,-1,-1,0,cos(seq(pi/2,0,length.out=50)),
>   cos(seq(2*pi,3*pi/2,length.out=50))),c(-1,-1,1,1,
>   sin(seq(pi/2,0,length.out=50)),sin(seq(2*pi,3*pi/2,length.out=50))),
>   border="#ff",col="#66ee33")
> 
> Jim
> 
> __
> R-help@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.
> 
> 

-- 
View this message in context: 
http://www.nabble.com/Draw-Polygon-with-a-Circular-Side-tp17328921p17346192.html
Sent from the R help mailing list archive at Nabble.com.

__
R-help@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.


[R] Draw Polygon with a Circular Side

2008-05-19 Thread ermimi

Hello Friends!!!

I would want draw a circular histogram, and I would like draw a polygon with
a circular side. This is easy if I use the functions polygon and arc, but I
want that the polygon with a circular side have background colour. The
polygon created with function polygon can have background colour, but the
surface created with function arc can´t have background colour.
How I could create a polygon with a circular side that have background
colour?? 
Thank you very much,  
A greetings Luismi
-- 
View this message in context: 
http://www.nabble.com/Draw-Polygon-with-a-Circular-Side-tp17328921p17328921.html
Sent from the R help mailing list archive at Nabble.com.

__
R-help@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.


Re: [R] Help to Draw Plot

2008-05-15 Thread ermimi

Thank you very much for your help Don MacQueen

Don MacQueen wrote:
> 
> 
> At 1:24 PM -0700 5/14/08, ermimi wrote:
>>Patrick and Blay Thank you very much for help me, I have drawn in blue the
>>axis
>>Blay the solution that you give me for start in (-10,-10) and finish in
>>(10,10) isn´t very well because I want that if my range is (-10,10) the
axis
>>is in -10,10. I need that there isn´t space between the less range and the
>>axis.
>>
> 
> See the help page for par
>?par
> then look for xaxs
> 
> use  xaxs='i', yaxs='i'
> 
>>
>>
>>
>>Patrick Connolly-4 wrote:
>>>
>>>  On Wed, 14-May-2008 at 09:12AM -0700, ermimi wrote:
>>>
>>>  |>
>>>  |> Hello friends!!
>>>  |>
>>>  |> I have two questions, and I would like that you could answer me!!!
>>>  |>
>>>  |> I have created a plot as  
>>>  |>
>>>  |>
>>> 
>>>plot(range(10,-10),range(10,-10),col="blue",col.axis="blue",col.lab="blue",col.main="blue",col.sub="blue");
>>>  |>
>>>  |>
>>>  |> 1º) I want that the square of plot and the lines that indicates the
>>>  value
>>>  |> -10,-5,0,5,10 have a blue colour too.
>>>
>>>  There would be tidier ways, but this will work:
>>>
>>>  points(range(10,-10),range(10,-10), col = "blue")
>>>  box(col = "blue")
>>>
>>>
>>>  |>
>>>  |> 2º)It´s different to the question one. I want that the plot start
>>> and
>>>  finish
>>>  |> in the two points that are drawn, is say... I want that the plot
>>> start
>>>  in
>>>  |> (-10,-10) (corner left down) and finish in (10,10) (corner right
>>> up)...
>>>  Now
>>>  |> the plot start in -11,-11 and finish in 11,11 more or less...
>>>
>>>  check out abline.
>>>
>>>  HTH
>>>
>>>  --
>>> 
>>> ~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.  
>>> ___Patrick Connolly  
>>>   {~._.~}Great minds discuss ideas   
>>>   _( Y )_   Middle minds discuss events
>>>  (:_~*~_:)   Small minds discuss people 
>>>   (_)-(_)  . Anon
>>>  
>>> 
>>> ~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.
>>>
>>>  __
>>>  R-help@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.
>>>
>>>
>>
>>--
>>View this message in context: 
>>http://www.nabble.com/Help-to-Draw-Plot-tp17234957p17239938.html
>>Sent from the R help mailing list archive at Nabble.com.
>>
>>__
>>R-help@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.
> 
> 
> -- 
> -
> Don MacQueen
> Lawrence Livermore National Laboratory
> Livermore, CA, USA
> 925-423-1062
> [EMAIL PROTECTED]
> 
> __
> R-help@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.
> 
> 

-- 
View this message in context: 
http://www.nabble.com/Help-to-Draw-Plot-tp17234957p17256203.html
Sent from the R help mailing list archive at Nabble.com.

__
R-help@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.


Re: [R] Help to Draw Plot

2008-05-14 Thread ermimi

Patrick and Blay Thank you very much for help me, I have drawn in blue the
axis 
Blay the solution that you give me for start in (-10,-10) and finish in
(10,10) isn´t very well because I want that if my range is (-10,10) the axis
is in -10,10. I need that there isn´t space between the less range and the
axis.





Patrick Connolly-4 wrote:
> 
> On Wed, 14-May-2008 at 09:12AM -0700, ermimi wrote:
> 
> |> 
> |> Hello friends!!
> |> 
> |> I have two questions, and I would like that you could answer me!!!
> |> 
> |> I have created a plot as   
> |> 
> |>
> plot(range(10,-10),range(10,-10),col="blue",col.axis="blue",col.lab="blue",col.main="blue",col.sub="blue");
> |> 
> |> 
> |> 1º) I want that the square of plot and the lines that indicates the
> value
> |> -10,-5,0,5,10 have a blue colour too.
> 
> There would be tidier ways, but this will work:
> 
> points(range(10,-10),range(10,-10), col = "blue")
> box(col = "blue")
> 
> 
> |> 
> |> 2º)It´s different to the question one. I want that the plot start and
> finish
> |> in the two points that are drawn, is say... I want that the plot start
> in
> |> (-10,-10) (corner left down) and finish in (10,10) (corner right up)...
> Now
> |> the plot start in -11,-11 and finish in 11,11 more or less...
> 
> check out abline.
> 
> HTH
> 
> -- 
> ~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.   
>___Patrick Connolly   
>  {~._.~}   Great minds discuss ideas
>  _( Y )_  Middle minds discuss events 
> (:_~*~_:)  Small minds discuss people  
>  (_)-(_) . Anon
> 
> ~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.
> 
> __
> R-help@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.
> 
> 

-- 
View this message in context: 
http://www.nabble.com/Help-to-Draw-Plot-tp17234957p17239938.html
Sent from the R help mailing list archive at Nabble.com.

__
R-help@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.


[R] Help to Draw Plot

2008-05-14 Thread ermimi

Hello friends!!

I have two questions, and I would like that you could answer me!!!

I have created a plot as   

plot(range(10,-10),range(10,-10),col="blue",col.axis="blue",col.lab="blue",col.main="blue",col.sub="blue");


1º) I want that the square of plot and the lines that indicates the value
-10,-5,0,5,10 have a blue colour too.

2º)It´s different to the question one. I want that the plot start and finish
in the two points that are drawn, is say... I want that the plot start in
(-10,-10) (corner left down) and finish in (10,10) (corner right up)... Now
the plot start in -11,-11 and finish in 11,11 more or less...

Sorry if I don´t write very well, but I´m spanish student.

I hope that you could help me.

Thank you very much, I greetings, Luismi
-- 
View this message in context: 
http://www.nabble.com/Help-to-Draw-Plot-tp17234957p17234957.html
Sent from the R help mailing list archive at Nabble.com.

__
R-help@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.


[R] Aling elmentos into Windows with TK

2008-05-07 Thread ermimi

Hello!!

I would like create a window that has diferent element as:

http://bioinf.wehi.edu.au/~wettenhall/RTclTkExamples/checkboxes.html
http://bioinf.wehi.edu.au/~wettenhall/RTclTkExamples/radiobuttons.html

I know as make it, but I don´t know as I could (align the diferent elemnts
to left, right, top, bottom) or (put in a coordinates into windows).

If anybody know as I could make it, I would like you say me.

Thank you very much, Luismi
A greetings
-- 
View this message in context: 
http://www.nabble.com/Aling-elmentos-into-Windows-with-TK-tp17103275p17103275.html
Sent from the R help mailing list archive at Nabble.com.

__
R-help@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.


Re: [R] Re ad From EXCEL

2008-04-20 Thread ermimi

Thank you Erich for you information, I will continue investigating about as
read data from excel.

Erich Neuwirth wrote:
> 
> To transfer data from Excel to R you have a least 3 options.
> RODBC is platform-independent. You can use it to read Excel files
> on any platform where you have an ODBC driver for Excel installed.
> 
> xlsReadWrite is available only on Windows. It has a function read.xls
> which reads data from Excel worksheets into data frames or matrices.
> It does not need Excel installed.
> 
> RExcel (available through package RExcelInstaller on CRAN)
> needs Excel. Among other things, it allows you to select
> a range in Excel and transfer it into R through operations
> available on additional Excel menus. RExcel not only allows data 
> transfer, it also allows you to use R function in Excel macros and even
> in Excel worksheet functions.
> 
> RExcel (and related software) has its own website at
> http://rcom.univie.ac.at. It also has its own mailing list
> which can be reached through this website.
> 
> 
> ermimi wrote:
>> Hello!!!
>> 
>> I have been read a much about as read data from Excel File, but I haven´t
>> found the necesary information to read the data.
>> Now, I can create a channel :  channel <- odbcConnectExcel("file.xls")
>> but I
>> don´t know as read the data??
>> 
>> I hope that you could help me. Thank you very much.
> 
> -- 
> Erich Neuwirth, University of Vienna
> Faculty of Computer Science
> Computer Supported Didactics Working Group
> Visit our SunSITE at http://sunsite.univie.ac.at
> Phone: +43-1-4277-39464 Fax: +43-1-4277-39459
> 
> __
> R-help@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.
> 
> 

-- 
View this message in context: 
http://www.nabble.com/Read-From-EXCEL-tp16787900p16795064.html
Sent from the R help mailing list archive at Nabble.com.

__
R-help@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.


[R] Re ad From EXCEL

2008-04-19 Thread ermimi

Hello!!!

I have been read a much about as read data from Excel File, but I haven´t
found the necesary information to read the data.
Now, I can create a channel :  channel <- odbcConnectExcel("file.xls") but I
don´t know as read the data??

I hope that you could help me. Thank you very much.
-- 
View this message in context: 
http://www.nabble.com/Read-From-EXCEL-tp16787900p16787900.html
Sent from the R help mailing list archive at Nabble.com.

__
R-help@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.


Re: [R] Draw Circles

2008-03-23 Thread ermimi

Hello, the problem is that... in my plot there are other things as text...
and when I change the size of the windows (for example I do more big the
width) the circle is done more big in the width and in the heigth, but I
only need change the width of the circle to the text is well situated.

I hope that you understand me... sorry if you don´t understand me, but I´m
spanish, and I don´t express very well in english.

Thank you



ermimi wrote:
> 
> Thank you very much for the help!!!
> 
> Felix Andrews wrote:
>> 
>> help.search("circle")
>> 
>> should point you to grid.circle in the grid package, at least in my
>> R version 2.6.1 (grid package version 2.6.1).
>> 
>> 
>> On Sun, Mar 23, 2008 at 8:44 AM, Gabor Grothendieck
>> <[EMAIL PROTECTED]> wrote:
>>> Look at draw.circle and draw.arc in the plotrix package.
>>>
>>>  On Sat, Mar 22, 2008 at 5:40 PM, ermimi <[EMAIL PROTECTED]> wrote:
>>>  >
>>>  > Hello!!!
>>>  >
>>>  > I would want to draw a circle but I don´t want use the function
>>> symbol(..).
>>>  > Do anybody know other function that allow me draw a circle?
>>>  > Thank you very much,
>>>  > Greetings Luismi
>>>
>>>  __
>>>  R-help@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.
>>>
>> 
>> 
>> 
>> -- 
>> Felix Andrews / 安福立
>> PhD candidate
>> Integrated Catchment Assessment and Management Centre
>> The Fenner School of Environment and Society
>> The Australian National University (Building 48A), ACT 0200
>> Beijing Bag, Locked Bag 40, Kingston ACT 2604
>> http://www.neurofractal.org/felix/
>> 3358 543D AAC6 22C2 D336 80D9 360B 72DD 3E4C F5D8
>> 
>> 
>> __
>> R-help@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.
>> 
>> 
> 
> 

-- 
View this message in context: 
http://www.nabble.com/Draw-Circles-tp16227640p16237182.html
Sent from the R help mailing list archive at Nabble.com.

__
R-help@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.


Re: [R] Draw Circles

2008-03-23 Thread ermimi

Thank you very much for the help!!!

Felix Andrews wrote:
> 
> help.search("circle")
> 
> should point you to grid.circle in the grid package, at least in my
> R version 2.6.1 (grid package version 2.6.1).
> 
> 
> On Sun, Mar 23, 2008 at 8:44 AM, Gabor Grothendieck
> <[EMAIL PROTECTED]> wrote:
>> Look at draw.circle and draw.arc in the plotrix package.
>>
>>  On Sat, Mar 22, 2008 at 5:40 PM, ermimi <[EMAIL PROTECTED]> wrote:
>>  >
>>  > Hello!!!
>>  >
>>  > I would want to draw a circle but I don´t want use the function
>> symbol(..).
>>  > Do anybody know other function that allow me draw a circle?
>>  > Thank you very much,
>>  > Greetings Luismi
>>
>>  __
>>  R-help@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.
>>
> 
> 
> 
> -- 
> Felix Andrews / 安福立
> PhD candidate
> Integrated Catchment Assessment and Management Centre
> The Fenner School of Environment and Society
> The Australian National University (Building 48A), ACT 0200
> Beijing Bag, Locked Bag 40, Kingston ACT 2604
> http://www.neurofractal.org/felix/
> 3358 543D AAC6 22C2 D336 80D9 360B 72DD 3E4C F5D8
> 
> 
> __
> R-help@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.
> 
> 

-- 
View this message in context: 
http://www.nabble.com/Draw-Circles-tp16227640p16234383.html
Sent from the R help mailing list archive at Nabble.com.

__
R-help@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.


[R] Draw Circles

2008-03-22 Thread ermimi

Hello!!!

I would want to draw a circle but I don´t want use the function symbol(..).
Do anybody know other function that allow me draw a circle?
Thank you very much, 
Greetings Luismi
-- 
View this message in context: 
http://www.nabble.com/Draw-Circles-tp16227640p16227640.html
Sent from the R help mailing list archive at Nabble.com.

__
R-help@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.


[R] Radio Buttons or similars

2008-03-19 Thread ermimi

Hello companions!!!

I have a function that creates a Radio Buttons, and I need that this
function return the selected value in the Radio Buttons. I would like that,
if somebody know as I could return the value, you say me as do it. 

Next, I show the function


function1<-function(){
require(tcltk)
tt <- tktoplevel()
rb1 <- tkradiobutton(tt)
rb2 <- tkradiobutton(tt)
rbValue <- tclVar("oranges")
tkconfigure(rb1,variable=rbValue,value="apples")
tkconfigure(rb2,variable=rbValue,value="oranges")
tkgrid(tklabel(tt,text="Which do you prefer?"))
tkgrid(tklabel(tt,text="Apples "),rb1)
tkgrid(tklabel(tt,text="Oranges "),rb2)
value<-0;
aux_function<- function()
{
rbVal <- as.character(tclvalue(rbValue))
tkdestroy(tt)
if (rbVal=="apples")
tkmessageBox(message="Good choice!  An apple a day keeps the 
doctor
away!")
if (rbVal=="oranges")
tkmessageBox(message="Good choice!  Oranges are full of Vitamin 
C!")
print(rbVal);
return(rbVal);
}
OK.but <- tkbutton(tt,text="OK",command=function() aux_function())
#OK.but <- tkbutton(tt,text="OK",command=function() 
value<<-aux_function())

tkgrid(OK.but)
tkfocus(tt)
#return(value)
}




Thanks in advance!
A greetings Luismi
-- 
View this message in context: 
http://www.nabble.com/Radio-Buttons-or-similars-tp16164495p16164495.html
Sent from the R help mailing list archive at Nabble.com.

__
R-help@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.


Re: [R] MENU TCL-TK

2008-03-18 Thread ermimi


My doubts were resolved, thank you Gabor

ermimi wrote:
> 
> Hello!
> 
> I need help in a menu in TCL-TK. I have 3 functions, one function
> (function1) that sum 2 numbers and return the result. Other
> function(function2) that print a number. And the other (function3), is a
> menu that has several options. I need use the result that returns the
> option that calls to function1 to call the function2.
> 
> tkadd(openRecentMenu,"command",label="Function1",
> command=function() function1(a,b))
> 
> 
> tkadd(openRecentMenu,"command",label="Function2",
>   command=function() function2(d))
> 
> I want that the value "d" is the return value of the function1, but I
> don´t know as I can asign the value to "d"
> 
> Next, I show the 3 functions.
> 
> Thank you very much,
> 
> A greetings
> 
> function1<-function(a,b){
>   return(a+b);
>   }
> 
> function2<-function(a){
>   print(a);
>   }
> 
> function3<-function(a,b){
> require(tcltk)
> tt <- tktoplevel()
> topMenu <- tkmenu(tt)
> tkconfigure(tt,menu=topMenu)
> fileMenu <- tkmenu(topMenu,tearoff=FALSE)
> openRecentMenu <- tkmenu(topMenu,tearoff=FALSE)
> tkadd(openRecentMenu,"command",label="Function1",
> command=function() function1(a,b))
> tkadd(openRecentMenu,"command",label="Function2",
>   command=function() function2(d))
> tkadd(fileMenu,"cascade",label="Functions",menu=openRecentMenu)
> tkadd(fileMenu,"command",label="Quit",command=function() tkdestroy(tt))
> tkadd(topMenu,"cascade",label="File",menu=fileMenu)
> tkfocus(tt)
> }
> 

-- 
View this message in context: 
http://www.nabble.com/MENU-TCL-TK-tp16128790p16131042.html
Sent from the R help mailing list archive at Nabble.com.

__
R-help@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.


[R] MENU TCL-TK

2008-03-18 Thread ermimi

Hello!

I need help in a menu in TCL-TK. I have 3 functions, one function
(function1) that sum 2 numbers and return the result. Other
function(function2) that print a number. And the other (function3), is a
menu that has several options. I need use the result that returns the option
that calls to function1 to call the function2.

tkadd(openRecentMenu,"command",label="Function1",
command=function() function1(a,b))


tkadd(openRecentMenu,"command",label="Function2",
command=function() function2(d))

I want that the value "d" is the return value of the function1, but I don´t
know as I can asign the value to "d"

Next, I show the 3 functions.

Thank you very much,

A greetings

function1<-function(a,b){
return(a+b);
}

function2<-function(a){
print(a);
}

function3<-function(a,b){
require(tcltk)
tt <- tktoplevel()
topMenu <- tkmenu(tt)
tkconfigure(tt,menu=topMenu)
fileMenu <- tkmenu(topMenu,tearoff=FALSE)
openRecentMenu <- tkmenu(topMenu,tearoff=FALSE)
tkadd(openRecentMenu,"command",label="Function1",
command=function() function1(a,b))
tkadd(openRecentMenu,"command",label="Function2",
command=function() function2(d))
tkadd(fileMenu,"cascade",label="Functions",menu=openRecentMenu)
tkadd(fileMenu,"command",label="Quit",command=function() tkdestroy(tt))
tkadd(topMenu,"cascade",label="File",menu=fileMenu)
tkfocus(tt)
}
-- 
View this message in context: 
http://www.nabble.com/MENU-TCL-TK-tp16128790p16128790.html
Sent from the R help mailing list archive at Nabble.com.

__
R-help@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.


[R] SORT MATRIX

2008-03-10 Thread ermimi

I have a matrix with 2 columns and n row. I need sort the matrix by the first
column but the second row must be sort in the same order that the first
column. Somebody know how I can sort this matrix.
Thanks very much
-- 
View this message in context: 
http://www.nabble.com/SORT-MATRIX-tp15955823p15955823.html
Sent from the R help mailing list archive at Nabble.com.

__
R-help@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.


[R] CREATE INTERFACE TO SELECT DIFERENT OPTIONS

2008-03-06 Thread ermimi

Hello, I´m spanish student, and I´m making the finish project of computer
science. I´m working in R and I need create a Interface which allow me
select diferents execution options (similar to a menu). Is posible to create
this menu,or interface, with R? or I have create this interface with other
language. 

Thank you very much, and I hope that you understand my english.
-- 
View this message in context: 
http://www.nabble.com/CREATE-INTERFACE-TO-SELECT-DIFERENT-OPTIONS-tp15872171p15872171.html
Sent from the R help mailing list archive at Nabble.com.

__
R-help@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.