RE: [R] plot

2003-03-17 Thread Morten Sickel
[EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] wrote: Can anyone tell me how to plot on the same graph two different functions (of x) using two differnt y scales (axes 2 and 4)? The only way I've found is to use the grid library and push.viewport(). ((...) means substitute with whatever

Re: [R] search function

2003-03-17 Thread Jonathan Baron
On 03/17/03 07:20, Laurent Gautier wrote: On Mon, Mar 17, 2003 at 01:50:03AM -0400, pingzhao wrote: Could any one tell me there is a search function for R-help Archives? http://www.r-project.org/search.html Also in my page below. -- Jonathan Baron, Professor of Psychology, University of

RE: [R] plot

2003-03-17 Thread Petr Pikal
Hi On 17 Mar 2003 at 9:06, Morten Sickel wrote: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] wrote: Can anyone tell me how to plot on the same graph two different functions (of x) using two differnt y scales (axes 2 and 4)? The only way I've found is to use the grid library and

RE: [R] Looking for GUI

2003-03-17 Thread Philippe Grosjean
Hello, There are no GUIs for R available yet, but a few are in preparation: PMG, ObveRsive, TexMacs, (and SciViews, but only under Windows). Keep an eye on http://www.r-project.org/GUI for new items, but I am afraid you wil not find what you are looking for very soon. Best, Philippe Grosjean

[R] automated legend for points.geodata

2003-03-17 Thread Rado Bonk
Hi R-users, I have to produce numerous plots using points.geodata function from geoR package. The function however, doesn't have an option to include the legend to the plot (to see the actual values of the data) Is there an automative way to include legend to the plot using points.geodata? I

Re: [R] xgobi?

2003-03-17 Thread Deborah Swayne
As far as I understood from the documentation of xgobi. The package is intended to plot data in 3D (and more). While xgobi is still available, it is no longer receiving much of its authors' attention. Its successor ggobi (www.ggobi.org), on the other hand, is growing all the time. While

[R] X11 connection error in web cgi mode only

2003-03-17 Thread Adaikalavan Ramasamy
Dear all, I am trying to create a web interface using Perl-CGI to call R plots and to display them. The following codes works perfectly fine when I copy and paste into the console directly or if I save it into script.file and then R --no-save script.file producing the graphs. jpeg(graph.jpeg,

[R] Season Determination

2003-03-17 Thread Hagen Schmöller
Hi R-Community, I have an historical time series of power prices and would like to determine the daily and yearly seasonal component for forecast purposes. Unfortunately the functions decompose and stl do not provide an always identical repeating seasonal pattern which could be continued in the

Re: [R] how to use R in delphi or vb ?

2003-03-17 Thread Duncan Murdoch
On Mon, 17 Mar 2003 16:01:39 +0900, you wrote: Dear Sirs, I am a beginner of R . Please teach me. Do someone teach me how to use R within 'delphi ' or Visual Basic? Someone else gave the link to the COM interface for calling R from those languages. If you want to write numerical code in Delphi

Re: [R] RMySQL Install Problem

2003-03-17 Thread David James
Hi, Could you tell us what version of MySQL you're running? -- David Fred Gerson wrote: Hey all, I asked my server administrator to install the RMySQL package for me however he was unable to and received the below errors. I searched the archives for some of the words in the error mesage

Re: [R] RMySQL Install Problem

2003-03-17 Thread Fred Gerson
Hey David, Sorry about that, the server runs MySQL 3.2.39. Thanks a lot, Fred On Mon, 17 Mar 2003, David James wrote: Hi, Could you tell us what version of MySQL you're running? -- David Fred Gerson wrote: Hey all, I asked my server administrator to install the RMySQL package for

Re: [R] Filled box on graph

2003-03-17 Thread John Fox
Dear John See ?polygon. I hope that this helps, John At 10:20 AM 3/17/2003 -0400, you wrote: Hello All, I need to indicate a range on a plot. It would be best as a filled rectangular region. Do functions exist to draw filled boxes on a plot? Thanks, John. --

Re: [R] Filled box on graph

2003-03-17 Thread John Janmaat
All responders, Polygon works great, thanks. John. John Fox wrote: Dear John See ?polygon. I hope that this helps, John At 10:20 AM 3/17/2003 -0400, you wrote: Hello All, I need to indicate a range on a plot. It would be best as a filled rectangular region. Do functions exist to draw

Re: [R] RMySQL Install Problem

2003-03-17 Thread David James
Fred Gerson wrote: Hey David, Sorry about that, the server runs MySQL 3.2.39. Probably you mean 3.23.39? You need to change line 197 in the file RMySQL/src/RS-MySQL.c from #if defined(MYSQL_VERSION_ID) MYSQL_VERSION_ID 32339 to #if defined(MYSQL_VERSION_ID) MYSQL_VERSION_ID 32348 --

[R] glm -gamma errors

2003-03-17 Thread Dr. Peter Schlattmann
Dear list, I am looking for a way to fix the scale parameter when fitting a generalized linear model with gamma errors and log link. Is there something like SCALE such as in GLIM? As always thanks a lot. Peter __ [EMAIL PROTECTED] mailing list

[R] r-square in LME?

2003-03-17 Thread Daniel Bloch
Dear Members of the R-Help-List I analysed data with LME in R. Is there a measure for LME (likelihood estimated) statistics which has an analogous meaning to the coefficient of determination (r-square) estimated by least-square procedure? Best wishes Daniel Bloch

[R] Trying to build R-1.6.2 under sparc-sun-solaris2.9.

2003-03-17 Thread Rolf Turner
This is a follow-up to a message I posted yesterday concerning building R-1.6.2. After a deafening silence regarding that first message I decided to be fool-hardy and just comment out the line that seemed to be giving trouble in the file /usr/include/sys/stream.h. This worked for a while, but

[R] Error in file(file, r)

2003-03-17 Thread Chisolm, Barbara
Hello, I am a new user of R, and I am not able to read/scan external files. I am working in a Linux environment. I have read through the R FAQ and documents and have not been successful using the recommendations. Below are several scripts I've used and the error messages. . I've cc'd

Re: [R] Trying to build R-1.6.2 under sparc-sun-solaris2.9.

2003-03-17 Thread Peter Dalgaard BSA
Rolf Turner [EMAIL PROTECTED] writes: This is a follow-up to a message I posted yesterday concerning building R-1.6.2. After a deafening silence regarding that first message I decided to be fool-hardy and just comment out the line that seemed to be giving trouble in the file

Re: [R] X11 connection error in web cgi mode only

2003-03-17 Thread Roger Peng
I believe you get this error because the jpeg and png libraries require the X11 device to be open in order to generate the plot. I'll guess that if you're doing CGI then the X11 device is not available. You can try using the `bitmap' device if you want jpeg or png. This converts to jpeg/png

Re: [R] Error in making R-1.6.2.

2003-03-17 Thread Roger Peng
My experience (which isn't worth much) is that the problem isn't with the header file itself but that it depends on some *other* header file that isn't getting included. This other file may have macro definitions, etc. which, if not included, could cause a parse error. -roger

Re: [R] Trying to build R-1.6.2 under sparc-sun-solaris2.9.

2003-03-17 Thread Roger Peng
Is it possible that something has changed in your system setup since the last install? The problem below seems to be that SOCKLEN_T is not defined, which is why (I think) you get the error Rsock.c:378: `len' undeclared (first use in this function) If I remember correctly, your configure gave

Re: [R] Error in file(file, r)

2003-03-17 Thread partha_bagchi
You say you are using the Linux environment. Hence you files are not being found. You are using the path system of a Windows environment. If your bac directory is in your home directory, try the following: Test2 - scan(~/bac/TestData2) HTH, Partha. Chisolm, Barbara [EMAIL PROTECTED] Sent

Re: [R] xgobi?

2003-03-17 Thread Ko-Kang Kevin Wang
Are there any plans to implement XGvis features in GGobi? I find the multidimensional scaling in XGvis quite interesting. ;-) On Mon, 17 Mar 2003, Deborah Swayne wrote: Date: Mon, 17 Mar 2003 08:28:52 -0500 From: Deborah Swayne [EMAIL PROTECTED] To: Miha STAUT [EMAIL PROTECTED] Cc: [EMAIL

[R] Using .Call function to do matrix calculation

2003-03-17 Thread Deli Wang
Hello, Because of high dimensionality of matrix, I can not use R matrix calculation operator to do matrix multiplication. My interest is the diagonal elements of J*J matrix( which can be got by multiplying matrix a(J*K) and b(K*J)), where J is too big to allocate enough memory for it. In

[R] scoping rules; summary

2003-03-17 Thread Robin Hankin
Hi everyone thanks for the replies. The issue was NOT a font problem; I deliberately chose ll1 and l11 as examples of easily confused variable names (evidently these were too easily confused ;-). The code snippet was written as intended, and increment() contained a deliberate, highlighted, bug.

Re: [R] Using .Call function to do matrix calculation

2003-03-17 Thread John Fox
Dear Deli Wang, Perhaps this isn't what you're looking for, but it occurs to me that you probably can do this problem without compiled code as sapply(1:nrow(a), function(i) sum(a[i,] * b[,i])). This doesn't use much memory, and though it may execute slowly, you may also get the answer before

[R] postscript and ps.option metrics

2003-03-17 Thread Patrick Mcleod
Good Afternoon All, I am working on a project to generate a particular celeration graph that requires a very specific height and width in the format of the postscript output. I have attempted to specify my height and width parameters in inches as I found in the R help documentation, but this

[R] search engine dose not work for Morzilla

2003-03-17 Thread Yiping Fan
Hello, I am running R1.6.2 on Redhat8.0. I use Morzilla to display the html file. However,the search engine does not work. eg. I type plot and press search, it does not return the result but show the same page. Any idea? Thanks! Y.Fan __ [EMAIL

[R] help with likelihood contour plot

2003-03-17 Thread Murray Jorgensen
Can some kind person point out my error here? I'm trying to set up a grid for a countour plot of a likelihood function. u - rnorm(20,9.5,2.5) # sample of size 20 from N(9.5,2.5^2) loglik - function(th1,th2) { + n - length(u) + -(n/2)*log(2*pi*th2^2)-0.5*sum((u-th1)^2/th2^2) + } x -

RE: [R] search engine dose not work for Morzilla

2003-03-17 Thread Marc Schwartz
-Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Yiping Fan Sent: Monday, March 17, 2003 4:07 PM To: R_Help (E-mail) Subject: [R] search engine dose not work for Morzilla Hello, I am running R1.6.2 on Redhat8.0. I use Morzilla to display the html

Re: [R] help with likelihood contour plot

2003-03-17 Thread Sundar Dorai-Raj
Murray Jorgensen wrote: Can some kind person point out my error here? I'm trying to set up a grid for a countour plot of a likelihood function. u - rnorm(20,9.5,2.5) # sample of size 20 from N(9.5,2.5^2) loglik - function(th1,th2) { + n - length(u) +

Re: [R] help with likelihood contour plot

2003-03-17 Thread Roger Peng
Be careful, I don't think your loglik function is vectorized correctly. In particular, it only works for single values of th1 and th2. If th1 or th2 are vectors, you will get a warning and the wrong answer. The problem is the subtraction u - th1, because u is already vector. outer() expects that

[R] Building hdf5 for ms-windows

2003-03-17 Thread Gabor Grothendieck
I am trying to build hdf5 for ms-windows. I downloaded the hdf5_1.4.7.tar.gz, gunzipped it and got a tar file. I extracted everything into a directory tree called hdf5. I also found a Makevars.win and libhdf5.def in the R help archives from March 2002. I put those two in hdf5 as well. I

Re: [R] Building hdf5 for ms-windows

2003-03-17 Thread Laurent Gautier
On Mon, Mar 17, 2003 at 06:48:48PM -0800, Gabor Grothendieck wrote: I am trying to build hdf5 for ms-windows. I downloaded the hdf5_1.4.7.tar.gz, gunzipped it and got a tar file. I extracted everything into a directory tree called hdf5. I also found a Makevars.win and libhdf5.def in the R

[R] Simulation

2003-03-17 Thread Jacob van Wyk
Hallo all users of R. I wish to simulate a simple linear regression, y=a+bx+e, (n=40, say), where x is N(0,1) and where e is N(0,1), with probability 0.9, and e is 3*(chisq(40,1)-1), say, with probability 0.1. For e: would the following work, or is there a better way? p - rbinom(40,1,0.9) e -

[R] Package installation when $RHOME is not writable (win)

2003-03-17 Thread Robert King
I'm using R in a student lab with machines running win XP. $RHOME is not writable by the students. How do I set this up so that they can install packages? Thanks, Robert. Robert King, Statistics, School of Mathematical Physical Sciences, University of Newcastle, Australia

Re: [R] Package installation when $RHOME is not writable (win)

2003-03-17 Thread Laurent Gautier
On Tue, Mar 18, 2003 at 05:40:32PM +1100, Robert King wrote: I'm using R in a student lab with machines running win XP. $RHOME is not writable by the students. How do I set this up so that they can install packages? Thanks, Robert. Robert King, Statistics, School of

Re: [R] Package installation when $RHOME is not writable (win)

2003-03-17 Thread Ko-Kang Kevin Wang
Hi, I think this is covered in R for Windows FAQ in Section 2.11 and 2.12 (http://cran.r-project.org/bin/windows/contrib/rw-FAQ.html) On Tue, 18 Mar 2003, Robert King wrote: Date: Tue, 18 Mar 2003 17:40:32 +1100 (EST) From: Robert King [EMAIL PROTECTED] To: [EMAIL PROTECTED] Subject: [R]