Re: [R] How to break an axis?

2005-05-24 Thread Jim Lemon
Bo Peng wrote: Dear list, I need to plot four almost horizontal lines with y-values around 1,3,4, 400. If I plot them directly, the first three lines will be indiscernible so I am thinking of breaking y-axis into two parts, one with range (0,5), another (395,400). Is there an easy way to do

Re: [R] display two pie-charts

2005-05-11 Thread Jim Lemon
Lars wrote: Hey, i'd like to compose a clock-like looking plot composed out of two circles, each showing the length of a period (to compare them). first, to do so, it looked the easiest by using pie(), just puting multiple pie-charts over each other. the problem is that once the second pie is

Re: [R] Put one random row dataset to first cell variable

2005-04-20 Thread Jim Lemon
Jan Sabee wrote: Dear useR help, This is below my toy dataset, age married income gender young nolow female old yeslow female mid no high female young yes high female mid yes high female mid no medium female old no medium female

Re: [R] Wrapping long labels in barplot(2)

2005-04-15 Thread Jim Lemon
Jan P. Smit wrote: I am using barplot, and barplot2 in the gregmisc bundle, in the following way: barplot2(sort(xtabs(expend / 1000 ~ theme)), col = c(mdg7, mdg8, mdg3, mdg1), horiz = T, las = 1, xlab = $ '000, plot.grid = T) The problem is that the values of 'theme', which is a factor,

Re: [R] Force labelling of x-axis

2005-03-20 Thread Jim Lemon
Bill Kranec wrote: Hi, I'm trying to do a box-whisker plot of two columns of a data frame, a list of category names in one column vs. some numerical values in the other. The plot itself works fine, but only a few points of the x-axis ( the category names ) are labelled. I think that this is

Re: [R] Special paper for postscript

2005-02-03 Thread Jim Lemon
On Tuesday 01 February 2005 06:42 am, Tae-Hoon Chung wrote: Hi, All; When I generate a special paper postscript image larger than a4 or letter using R, I can only see one-page portion of all image, of course. What will be the simple solution for this? Is there any way I can set the bounding

Re: [R] Time line plot in R?

2005-01-18 Thread Jim Lemon
Sander Oom wrote: Dear R users, In order to illustrate the possible effects of events on variables plotted against time, I would like plot a time line of events along side the plot of the variables. The x-axis should be some time unit; the y-axis should be the variable of interest; the

Re: [R] combination of scatterplot and image graph

2004-12-23 Thread Jim Lemon
bogdan romocea wrote: Dear R users, I'm interested in a combination of a scatterplot and an image graph. I have two large vectors. Because in the scatterplot some areas are sparsely and others densely populated, I want to see the points, and I also want their color to be changed based on

Re: [R] graphs - saving and multiple

2004-12-11 Thread Jim Lemon
stephenc wrote: ... but I don't get anything in my eps file! If you mean you get a blank image or nothing when you import the resulting PS file, you may need to set onefile=FALSE. Jim __ [EMAIL PROTECTED] mailing list

Re: [R] what about a mascot ?

2004-12-08 Thread Jim Lemon
internautem wrote: My friend Veslot proposed me the Raven ! http://www.teteamodeler.com/allopass/images/corbeau.jpg As a matter of fact the intelligence of this bird is comparable to one of a monkey, although its brain is close to a reptile brain. R is quite the same : small, compact, but so

Re: [R] Re: Protocol for answering basic questions

2004-12-06 Thread Jim Lemon
Liaw, Andy wrote: ... Someone mentioned a tip shown at R startup (a la S-PLUS for Windows, I guess). I guess someone (hint, hint) could collect a set of tips, perhaps using Paul Johnson's page as a starting point, and make it into a contrib package similar to the `fortune' package. Those

Re: [R] How about a mascot for R?

2004-12-02 Thread Jim Lemon
Ahh, to heck with all them animals. R is a system of interacting components, so I suggest Mr Gearhead as a suitable mascot. http://www.bitwrit.com.au/gearhead.png Jim __ [EMAIL PROTECTED] mailing list https://stat.ethz.ch/mailman/listinfo/r-help

RE: [R] A possible way to reduce basic questions

2004-12-01 Thread Jim Lemon
As there seems to be some interest in this concept, I'll include the C code (The attachment seems to have been deleted from my last message). I compiled this as follows: gcc -o indxlst indxlst.c It runs like this: indxlst -t path_to_R_library_directory producing a file named INDEX_list.html

[R] Re: Reasons not to answer very basic questions...

2004-11-29 Thread Jim Lemon
A.J. Rossini wrote: and perhaps the most important reason for the particular socratic form of teaching on this list... Golly, anyone who read Plato's Dialogues would realize that the Socratic method involves patiently leading the questioner stepwise through the solution, not simply writing

Re: [R] R vs SPSS

2004-11-25 Thread Jim Lemon
As I started out using SPSS when there was no GUI (in fact, no interactive interface at all), I automatically open up the syntax editing window when I have to use it. It's a workable text editor, you can run all or part of the code at will, and build up a code file in much the same way as R.

Re: [R] overlapping plots

2004-11-02 Thread Jim Lemon
Carlisle Thacker wrote: Andy, If I had the three plots on three separate sheets of paper, I could cut out plot 2 and paste it over plot one so that the data and axes on both plots can be seen. Then I could cut out plot 3 and past it over plots 1 and 2 so that data and axes on all three

Re: [R] R 2.0.0 is released

2004-10-05 Thread Jim Lemon
Peter Dalgaard wrote: ... Besides, how do you arrive at a moving target? Zeno sez: Time of flight = (Location(target)-Location(archer))/(Velocity(arrow)-Velocity(target)) where Velocity(arrow)Velocity(target) conveniently avoiding all those difficult angling shots, windage and the thousand

Re: [R] Warning: number of items to replace is not a multiple of replacement length

2004-09-30 Thread Jim Lemon
Mag. Ferri Leberl wrote: What does this warning mean precisely? Is there any reason to care about it? Can I Avoid it by another way of programming? As you have already gotten most of your questions answered, here is a possible answer to the last. You may want to care about it, but not

Re: [R] Proposal for New R List: Criticism? Comments?

2004-09-19 Thread Jim Lemon
It seems to me that \concept{} is simply another code for My keyword is your search term. I do not consider myself to be one of the better informed users of R, yet the frequency with which I resort to a full text search is less than once a month. For such an infrequent task, I find it no problem

[R] Getting data loaded

2004-08-18 Thread Jim Lemon
the lines in install.R, nor does Checking and Building Packages. I managed to locate a few install.R files in other packages, but they were all empty. Any hints? Jim Dr Jim Lemon Research Psychologist Health Psychology Unit University of Technology, Sydney Feel free to ignore any garbage beneath

Re: [R] How to compare X1 = X2 = ... = Xn?

2004-07-20 Thread Jim Lemon
F Duan wrote: Dear All, I have a data frame with n columns: X1, X2, ., Xn. Now I want to create a new column: if X1 = X2 = . = Xn, the value is 1; Otherwise, the value is 0. How to do that in a quick way instead of doing (n choose 2) comparisons? Assuming that the Xs are numeric, and

[R] LaTeX errors

2004-07-20 Thread Jim Lemon
Hello again, Having successfully mastered the creation of fairly unsophisticated print methods, I have encountered the dreaded LaTeX error, i.e.: * checking concord-manual.tex ... ERROR LaTeX errors when creating DVI version. This typically indicates Rd problems. As I have no idea what these

[R] Stumped on methods

2004-07-16 Thread Jim Lemon
I have been trying to write a proper print method for a package, and have almost gotten what I want. From a reading of the relevant section in R Extensions and the introduction to methods, I've stuck the whole business into a character object and used: NextMethod(print) However, instead of

Re: [R] Stumped on methods

2004-07-16 Thread Jim Lemon
Thank you all, gentlemen. getAnywhere(), which I blush to say I have seen flash by in a few recent messages, allowed me to see the awful truth. But for the fact that it sounds like one of those gizmos in science fiction that allow one to turn up in the next galaxy, I might have twigged. Jim

Re: [R] R CMD line45

2004-07-03 Thread Jim Lemon
Javad Ashjari wrote: Dear Friends I use R in linux. I have problem by installing a package. when i use R CMD coomond, i recived a d a erroe line /usr/lib/R/bin/Rcmd: line45: exec: INSTAL~1 not found. how can i solve my problem? thank you for your advise I'll have a guess at this one. I

Re: [R] legend

2004-06-23 Thread Jim Lemon
Perez Martin, Agustin wrote: DeaR UseRs: I want to put a legend in my plot. In the first line of the legend I want to put a box filled but in the second one I would like to put a lty=2 Of course it must appear with different colors. I think I wrote this function about a year ago for

Re: [R] Covered Labels

2004-06-23 Thread Jim Lemon
Martina Renninger wrote: Dear All! How can I cope with overlapping or covered labels (covered by labels from other data points) in plots? This doesn't solve every such problem, but it has helped me in the past. You will probably have to expand the xlim and ylim a bit to fit the extreme

Re: [R] install.packages

2004-04-16 Thread Jim Lemon
I hope I will be pardoned for asking what may be a dumb question on this thread. Recently I noticed that when I tried my established method of adding a package to R (i.e. download the *.tar.gz file to a directory of similar files and INSTALL), I was no longer able to do this. I did eventually

Re: [R] summary(difftime(...))

2004-04-15 Thread Jim Lemon
I M S White wrote: Is there any way to get a numerical summary of the values of a difftime object? E.g. TimeToWean - difftime(WeanDate, BirthDate, units = days) I can repeat sum(TimeToWean == 20) with as many other values are needed to build up a frequency table, but is there a simpler

Re: [R] Zero Index Origin?

2004-03-31 Thread Jim Lemon
Hi Bob, Jonathan Rougier's Oarray package might be what you want. Jim __ [EMAIL PROTECTED] mailing list https://www.stat.math.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html

Re: [R] reading short int and float from binary connection

2004-03-18 Thread Jim Lemon
Angel Lopez wrote: Thanks for the advise. I think I've found the solution, the problem was that the file had been written from a C program using a structure containing floats and int, if I rewrite the C code not using a structure but independent floats and ints the data then is read smoothly

Re: [R] R-business case

2004-03-17 Thread Jim Lemon
Haven't there been one or two people who asked list members to submit peer-reviewed, published papers in which R was used for the analysis? I certainly have sent an email or two like this. Jim __ [EMAIL PROTECTED] mailing list

Re: [R] Nonparametric test of randomness (Run Test)

2004-03-01 Thread Jim Lemon
Hi Mohammad, There an implementation of Knuth's run test in the pLab programs. While these are apparently not being maintained anymore, there is a good description of the code here: http://random.mat.sbg.ac.at/team/#software Download this file - the Mathematica code is on page 65. Leeb, H.

Re: [R] Calculate Distance and Aggregate Data?

2004-02-24 Thread Jim Lemon
[EMAIL PROTECTED] wrote: Hi all, I've been struggling learning R and need to turn to the list again. I've got a dataset (comma-delimited file) with the following fields: recid, latitude, longitude, population, dwelling and age. For each observation, I'd like to calculate the total number

[R] Bug in concord package

2004-02-10 Thread Jim Lemon
it with the second one. Thanks, Jim Dr Jim Lemon Research Psychologist Health Psychology Unit University of Technology, Sydney Feel free to ignore any garbage beneath this line. DISCLAIMER\ ...{{dropped

Re: [R] Error in R-1.8.1 build

2004-01-12 Thread Jim Lemon
Prof Brian Ripley wrote: You got a segmentation fault from the compiler. It is the notorious gcc `2.96' (see gcc.gnu.org -- there is no such version according to the gcc developers). It used to be a frequent source of grief (but then RedHat 7.2 is old now), and the advice is to use a

Re: [R] Selecting subsamples

2003-12-05 Thread Jim Lemon
[EMAIL PROTECTED] wrote: Hi all, I?m working with a dataset with 9 columns and 2000 rows. Each row represents an individual and one of the columns represents the volume of that individual (measured in cubic meters). I?d like to select a sample from this dataset (without considering any

Re: [R] (no subject)

2003-11-13 Thread Jim Lemon
On Wednesday 12 November 2003 10:24 pm, Stefan Wagner wrote: Hi all, I am looking for a clever way to create the following graph using R: I got information on the shares of some subgroups over time (summing up to 1 in each year). The graph I want to create should display the development of

[R] Re: [R} stars graphs

2003-08-15 Thread Jim Lemon
I thought about that star graph again, and realized that it would be quite a handy thing for visualizing cyclic data like time or compass direction. Here is a cleaned up (and renamed) version to do a polar plot that starts at the right and goes counterclockwise or a 24 hour clock plot that

Re: [R] Timer in R?

2003-08-14 Thread Jim Lemon
Johnathan Williams wrote: Would anyone be so kind as to write a routine to time mouse button presses in R to the nearest millisecond? If R had a timer of this kind and a few basic screen handling routines (to write characters or graphics of different sizes and colours at precise times)

Re: [R] Scripting with an external editor

2003-03-24 Thread Jim Lemon
[EMAIL PROTECTED] wrote: ?parse says `parse' returns the parsed but unevaluated expressions in a list. Each element of the list is of mode `expression'. that is, it takes all the input and returns a list once all the input has been parsed. There is no multi-tasking in the R

<    1   2   3