Re: [R] command to plot variannce of data (like error bar plot)

2007-09-10 Thread Jim Lemon
Yogesh Tiwari wrote: Hi, How to plot a variance over a data point, something like error bar. Hi Yogesh, The generic method is to use the arrows function, and there are quite a few variations on this theme (in alpha order): brkdn.plot(plotrix) dispbars(plotrix) errbar(Hmisc and sfsmisc)

Re: [R] Help in installing and loading the BradleyTerry add on package in R

2007-09-10 Thread Jim Lemon
Kalyan Roy (DEL/MSG) wrote: How do I install and load the BradleyTerry add on package in R 2.5.1 in MSWindowsXP environment? Hi Kalyan, If R CMD INSTALL doesn't work, you can use WinZip or Zip Reader to unzip the package to: C:\Program Files\R-2.5.1\library or whatever your path to the

Re: [R] Help with color coded bar graph

2007-09-08 Thread Jim Lemon
Luis Naver wrote: I have a list of observations that are -1, 1 or 0. I would like to represent them in a horizontal bar color coded based on value like a stacked bar graph. I can achieve this in the form of a png with the following code: A = floor(runif(10)*3) - 1 png(width=100,

Re: [R] list element to matrix

2007-09-06 Thread Jim Lemon
[EMAIL PROTECTED] wrote: I have created a list of matrices using sapply or lapply and wish to extract each of the matrices as a matrix. Some of them are 2x2, 3x3, etc. I can do this one at a time as: M1-as.matrix(D[[1]]) How can repeat this process for an unknown number of entries in

Re: [R] Pie Chart Labels

2007-09-05 Thread Jim Lemon
Adam Green wrote: I am having trouble finding out how to adjust the position of labels on pie charts. For the small wedges, many of the labels overlap making it impossible to read. Is there any way to offset the labels so that they don't overlap? Hi Adam, There are three ways to adjust

Re: [R] how to do interpolation

2007-09-04 Thread Jim Lemon
Yogesh Tiwari wrote: Hello R Users, How to make a variable equidistance with time i.e. how to interpolate a variable if it is not sampled at equal time interval. Hi Yogesh, Don't know whether this will suit your purpose. I wrote it to enable color-coded plotting of highly variable data. If

[R] Incomplete rank functions

2007-09-04 Thread Jim Lemon
Hi folks, Thanks to my esteemed colleagues, I have been grappling with the analysis of incomplete ranks. These result from questions like: Number the three most important things from the following list in order from 1 to 3. OR Where some or all respondents or observers have not assigned ranks

Re: [R] NAs in indices

2007-09-03 Thread Jim Lemon
Muenchen, Robert A (Bob) wrote: Hi All, I'm fiddling with an program to read a text file containing periods that SAS uses for missing values. I know that if I had the original SAS data set instead of a text file, R would handle this conversion for me. Data frames do not allow missing

Re: [R] Automatic anchors for text boxes

2007-09-01 Thread Jim Lemon
Yves Moisan wrote: Hi All, I'm struggling to add text automatically to plots. I have a series of scatterplots that I have stored in a script because the underlying data changes often and the plots need to be regenerated. I use the scatterplot function (defined in Rcmd, I believe). When

Re: [R] plotting

2007-09-01 Thread Jim Lemon
yoo wrote: Hi, let's say I have data x = c(1, 2, 10, 12) y = c(100, -20, 50, 25) if I go plot(x, y), then the default x-axis range goes from 1 to 12. Is there a way to change it so that the axis looks like: |-|-|-| 1 2 10 12 This doesn't

Re: [R] Single plot multiple levels in x?

2007-08-31 Thread Jim Lemon
Richard Yanicky wrote: One axis inside another, for example salary within state, 1-50 | 50 – 100 | 100+ | 1- 50 | 50 -100 | 100+ | … repeated bins for salary AL ! AR …… more states Okay, I see what

Re: [R] Excel

2007-08-31 Thread Jim Lemon
Rolf Turner wrote: On 31/08/2007, at 9:10 AM, Antony Unwin wrote: Erich's more important point is that you need to speak the language of the people you cooperate with and often that language includes Excel. So if the people you have to deal with are into astrology you should learn

Re: [R] breaking the x-axis and having two different x-axis labels

2007-08-30 Thread Jim Lemon
Georg Ehret wrote: Dear R community, I have two questions concerning barplots that I struggle to resolve: 1) How can I break (interrupt) the x-axis (e.g.: have it display values from -100 to -90 and 90 to 100 only)? I think you mean a horizontal barplot with a gap between -90 and 90.

Re: [R] Simple Graph

2007-08-30 Thread Jim Lemon
amna khan wrote: Hi Sir We use the function mpg() for ticks on axes. If we define more number of ticks then each tick is not labeled. How to label each tick on axes? Hi Amina, The staxlab function in the plotrix package will display tick labels even if they would overlap on the standard

Re: [R] Recoding multiple columns consistently

2007-08-29 Thread Jim Lemon
Ron Crump wrote: Hi, I have a dataframe that contains pedigree information; that is individual, sire and dam identities as separate columns. It also has date of birth. These identifiers are not numeric, or not sequential. Obviously, an identifier can appear in one or two columns,

Re: [R] fill circles

2007-08-26 Thread Jim Lemon
Cristian cristian wrote: Hi all, I'm an R newbie, I did this script to create a scatterplot using the tree matrix from datasets package: library('datasets') with(trees, { plot(Height, Volume, pch=3, xlab=Height, ylab=Volume) symbols(Height, Volume, circles=Girth/12, fg=grey,

Re: [R] How to shade vertical bands in a graph?

2007-08-24 Thread Jim Lemon
del pes wrote: Hello, I would like to draw vertical yellow bands in my graph, but could not find how to do that in the documentation. I set up a page to show what I would like to achieve: http://rstudent.blogg.de/eintrag.php?id=1 (the first picture was manually colored with the Gimp).

Re: [R] divided scatter plots

2007-08-22 Thread Jim Lemon
Caroline Nganga wrote: I have a data set which contains two columns. The first column is a list of countries, and the second column contains their political risk ratings. I would like to create one large plot that contains 5 different sections, each with a scatter plot. To clarify, I have

Re: [R] Stacked Bar

2007-08-21 Thread Jim Lemon
Deb Midya wrote: Hi R Users! Thanks in advance. I am using R-2.5.1 on Windows XP. I am trying to do a stacked bar plot, but could not get through the following problem. The code is given below. 1. How can I provide 15 different colors for each method with 15 Rows? 2.

Re: [R] Interweaving cell entries from 2 columns

2007-08-20 Thread Jim Lemon
jenny wrote: Hi, how do I interweave 2 columns of data into a single column? See illustration below. Thx-jenny I have 2 columns of data Col1 Col21 2 3 45 6 7 89 10 I want to create a new column with interlocking cell centries12345678910 Get

Re: [R] Labelling certain points on the x-axis

2007-08-20 Thread Jim Lemon
squall44 wrote: Hello, I created an empirical distribution function: x = c(1.6,1.8,2.4,2.7,2.9,3.3,3.4,3.4,4,5.2) F2.5 - ecdf(x) plot(F2.5, verticals= TRUE, do.p = TRUE, lwd=3, ylab = f(x), xlab = x, main = Figur 2.5 Empirische Verteilfunktion,

Re: [R] multiple colors within same line of text

2007-08-18 Thread Jim Lemon
Andrew Yee wrote: Hi, I'm interested in using mtext(), but with the option of having multiple colors in the same line of text. For example, creating a line of text where: Red is red and blue is blue How do you create a text argument that lets you do this within mtext()? You can do

Re: [R] vertically oriented color key in heatmaps

2007-08-14 Thread Jim Lemon
Rajarshi Guha wrote: Hi, I have some data which I was plotting using image(). I wanted to add a vertical color key to the plot and I found that heatmap.2 in gplots does let me add a color key. However, I was thinking of a vertical bar with the color range rather than the style that

Re: [R] Positioning text in top left corner of plot

2007-08-10 Thread Jim Lemon
Daniel Brewer wrote: Thanks for the replies, but I still cannot get what I want. I do not want the label inside the plot area, but in the top left of the paper, I suppose in the margins. When I try to use text to do this, it does not seem to plot it outside the plot area. I have also tried

Re: [R] Subject: Re: how to include bar values in a barplot?

2007-08-10 Thread Jim Lemon
Gabor Grothendieck wrote: You could put the numbers inside the bars in which case it would not add to the height of the bar: x - 1:5 names(x) - letters[1:5] bp - barplot(x) text(bp, x - .02 * diff(par(usr)[3:4]), x) Indeed, the boxed.labels function makes this pretty easy.

Re: [R] saving output

2007-08-08 Thread Jim Lemon
Lynn Disney wrote: I have a question about how to save the output of a logistic regression model in some format (delimited, preferably) so that I can manipulate it to make nice tables in excel. I have tried print, save, write, none seem to do what I want them to. Does anyone have any ideas?

Re: [R] - round() strange behaviour

2007-08-06 Thread Jim Lemon
(Ted Harding) wrote: ... Thus always up or always down means that the difference between rounded numbers is always the same as between the unrounded numbers which for other methods the differences can differ by 2.0. This may or may not matter, but it is something to think about when choosing

Re: [R] Selectively shading areas under two density curves

2007-08-06 Thread Jim Lemon
Ian Watson wrote: Dear Listers, I am drawing a plot of two density curves, for male and female incomes. I would like to shade/hatch/color (whatever) the areas under the curves which are distinctive for each gender. This is the code I have tried so far: m - density(topmal.d$y, bw =

Re: [R] shadow between two lines in plot()

2007-08-02 Thread Jim Lemon
Ding, Rebecca wrote: Dear R users, I used the following code to draw a scatter plot. plot(x,y,type=n) points(x,y,pch=1) And then I used the abline functions to draw two lines. I want to add the shadow between those two lines. abline(h=200) abline(h=300) Any suggestions? Hi

Re: [R] Cut marks on a plot's y-axis to indicate it is a truncated axis

2007-08-01 Thread Jim Lemon
David Lloyd wrote: Hi, I've plotted a Kaplan-Meier curve but the curves only range from 0.7 to 1 on the y-axis. Therefore I have used: - ylim=c(0.7,1) [although I think convention dictates that you plot 0.5 to 1 to show the median? A few papers I've read have done this]?? BUT, I

Re: [R] Average plan

2007-07-30 Thread Jim Lemon
Nok Noy wrote: Hello, I'm looking for a method to compute an average plan from 4 or 5 point in an cartesian space. I'm sure It can be done using a less-square method but maybe it a function already exist in R system to get this plan. Can somebody help me to solve this problem (I'm looking

Re: [R] How to add circular text for a graph with concentric circles

2007-07-25 Thread Jim Lemon
[EMAIL PROTECTED] wrote: Dear R experts, I am plotting the population of students who live in a city, and in successive circular bands made of the contiguous districts that surround the city. This is a stylized figure, where I specify the area of each successive circle based on the

[R] mfrow is ignored by some plots

2007-07-19 Thread Jim Lemon
Hi all, I was just informed that the plots in the radial.plot family in the plotrix package do not plot correctly when using mfrow or mfcol to subdivide the plot window. I found one related message, an answer from Deepayan Sarkar to a question about lattice graphics, but that shed no light on

Re: [R] mfrow is ignored by some plots

2007-07-19 Thread Jim Lemon
Prof Brian Ripley wrote: I'd ask the plotrix maintainer to fix his code! radial.plot saves and restores all the par() values, including mfrow and mfg. When you do par(mfrow=c(2,2)) the plot position is reset to the bottom right, and the next plot will advance to the top left (but

Re: [R] Missing value in circ.mean and polar.plot

2007-07-18 Thread Jim Lemon
Gagnon,Francois [SteFoy] wrote: Hi, I try to compute circular means for a matrix with NAs, but the function circ.mean return only means for lines with complete values and do not accept na.omit=T or na.rm=T, or na.action=na.omit, or na.fail=T. Also, I try to use polar.plot of the

Re: [R] Text with differents colors in a plot / Detecting if text exists

2007-07-16 Thread Jim Lemon
Maja Schröter wrote: Hi everybody, I want to write some text in a plot. That's simple I know. But I want to make use of different colors. Eg. text(x,y,paste(Sunderland,high)). Then Sunderland should be black and high red. Has anyone an idea? By the way. I'm looking for a

Re: [R] The results of your email commands

2007-07-10 Thread Jim Lemon
dimple thyagarajan wrote: ... Building a website is a piece of cake. But sending an email is another matter altogether. Jim __ R-help@stat.math.ethz.ch mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide

[R] character string to name

2007-07-09 Thread Jim Lemon
Hi folks, I thought I recalled a request for turning a character string into an object name as in: x$as.name(y)-1:4 OR x-data.frame(as.name(y)=1:4) However, as.name and a few other uninformed attempts didn't even come close. A search of character to name produced no helpful functions. This

Re: [R] character string to name

2007-07-09 Thread Jim Lemon
Jim Lemon wrote: Hi folks, I thought I recalled a request for turning a character string into an object name as in: x$as.name(y)-1:4 ... Thanks to those who replied to this eminently dumb question. OT: I put this down to the Euthermic Model of Cognitive Efficiency. This model

Re: [R] color scale in rgl plots

2007-07-07 Thread Jim Lemon
David Farrelly wrote: Hello, I'm trying to make a 3d plot using rgl in which the size and color of each point corresponds to certain attributes of each data point. The color attribute, let's call it X, is scaled to go from 0 to 1. The rainbow(64,start=0.7,end=0.1) palette is perfect for

Re: [R] Please help with legend command

2007-07-05 Thread Jim Lemon
Smith, Phil (CDC/CCID/NCIRD) wrote: Hi R-ers: I'm drawing a plot and have used different line types (lty) for different race/ethnicity groups. I want a legend that explains what line types correspond to the different race/ethnicity groups. I used the following code: legend( 1992 , 42

Re: [R] Plotting very skewed data in barplot

2007-07-03 Thread Jim Lemon
Dr. med. Peter Robinson wrote: Dear R'ers, I would like to use barplot or a similar function to plot data demonstrating the distribution of the length of a kind of conservation in about 25000 DNA sequences. My data look like this: ... Therefore, I would like to show the column

Re: [R] Combine graphical and textual output

2007-07-02 Thread Jim Lemon
Dieter Vanderelst wrote: Hi, I would like to know whether anybody knows a simple way to combine textual and graphical output in R. A typical analysis produces textual output (e.g. model fits) and plots in R. I would like to know whether R has the possibility of combining these into a

Re: [R] Plots from categorial data

2007-07-01 Thread Jim Lemon
Christoph Krammer wrote: Hello everybody, Since my first message was caught by the spam filter, I just try to do it again: I want to use R to generate plots from categorial data. The data contains results from OCR scans over images with are preprocessed by different image filtering

Re: [R] Repeat if

2007-06-29 Thread Jim Lemon
Birgit Lemcke wrote: Hello, (Power Book G4, Mac OS X, R 2.5.0) I would like to repeat the function range for 85 Vectors (V1-V85). I tried with this code: i-0 repeat { + i-i+1 + if (i85) next + range (Vi, na.rm = TRUE) + if (i==85) break + } I presume that the Vi is wrong,

Re: [R] Looking for parallel functionality between Matlab and R

2007-06-27 Thread Jim Lemon
El-ad David Amir wrote: I'm slowly moving my statistical analysis from Matlab to R, and find myself missing two features: a) How do I mimic Matlab's 'hold on'? (I want to show several plots together, when I type two plots one after the other the second overwrites the first) b) How do I

Re: [R] how to plot this?

2007-06-26 Thread Jim Lemon
Weiwei Shi wrote: Hi, there: Suppose I have a couple of data.frames and each one has five columns (one for x-axis, two for y-axis and two for std of y's.) There is another dimensions (besides x and y) which is continuous. My question is, how to plot such series of data frames in one plot

Re: [R] Encircling a text in a plot

2007-06-24 Thread Jim Lemon
Maja Schröter wrote: Hello everyone, I want to write something in a plot with text or something similar, e.g. text(x,y,something) but I want to encircle it by a box as in a legend. I have absolutely no idea how this could work. Hi Maja, Have a look at boxed.labels and textbox in the

Re: [R] how to create cumulative histogram from two independent variables?

2007-06-22 Thread Jim Lemon
Jose Borreguero wrote: Hi all, I am extremely newbie to R. Can anybody jump-start me with any clues as to how do I get a cumulative histogram from two independent variables, cumhist(X,Y) ? -jose Hi Jose, Is this something like you want? var1-sample(1:10,100,TRUE)

Re: [R] names over names

2007-06-20 Thread Jim Lemon
elyakhlifi mustapha wrote: Hello, I wonder if it's possible to put names above column names. Do you know if it's possible? If you mean something like this: Weekdays Monday Tuesday Wednesday Thursday Friday and you want it to be part of the data frame:

Re: [R] triangle contour plots

2007-06-19 Thread Jim Lemon
Robin Hankin wrote: Suppose I have three numbers p1, p2, p3 with 0 = p1,p2,p3 = 1 and p1+p2+p3=1, and a function f=f(p1,p2,p3) = f(p1,p2,1-p1-p2). How to draw a contour plot of f() on the p1+p2+p3=1 plane, that is, an equilateral triangle? Functions triplot(), triangle.plot(), and

Re: [R] Readline

2007-06-18 Thread Jim Lemon
Antje wrote: Hello, I also have problems to get to run the following lines. If I run the block instead of every single line, it simply does not wait for the input. Can anybody help me? pos_name - readline(Please type: ) r - substr(pos_name, 1,1) c -

Re: [R] R help

2007-06-07 Thread Jim Lemon
scott flemming wrote: Hi, I wonder whether R can finish the following project: I want to make a chart to represent 10 genes. Each gene has orientation and length. Therefore, a gene can be represented by arrows. Can R be used to draw 10 arrows in one line ? Hi Scott, Maybe the

Re: [R] Filled step-function?

2007-05-16 Thread Jim Lemon
Beate Kowalczyk wrote: Hello, I'd like to generate a filled step-function in R as you can see in the attachement (image is generated by grapher, but I need a freely available alternative). The problem is, that I don't know, how to fill it up. My code right now looks like this: pH -

[R] So long, concord

2007-05-12 Thread Jim Lemon
Hi R-users, In the interest of reducing the duplication of functions and multiplication of packages on CRAN, I will no longer be upgrading the concord package, and will in time remove it. Matthais Gamer has offered to host the following functions in the irr package: kripp.alpha (Krippendorff's

Re: [R] Representing a statistic as a colour on a 2d plot

2007-05-10 Thread Jim Lemon
mister_bluesman wrote: Ive been getting the color.scale function to work. However, I really need to know is that if i have values: 0.1 0.2, 0.3, 0.4, 0.5, for example, how I can plot these using colours that would be different if the contents of the file were 0.6, 0.7, 0.8, 0.9 and 1.0. Using

Re: [R] Representing a statistic as a colour on a 2d plot

2007-05-08 Thread Jim Lemon
mister_bluesman wrote: Hello. I have a 2d plot which looks like this: http://www.nabble.com/file/8242/1.JPG This plot is derived from a file that holds statistics about each point on the plot and looks like this: abc d e a

Re: [R] to draw a smooth arc

2007-05-02 Thread Jim Lemon
(Ted Harding) wrote: This thread prompts me to ask about something I've been pondering for a while, as to whether there's an implementation somewhere ticked away in the R resources. So far, people have been responding to the original query in terms of increasing the numbers of points, and

Re: [R] Polar graph of time and tide

2007-05-02 Thread Jim Lemon
Alan E. Davis wrote: I have been trying to visualize times of lowest tides, month by month. I have tide predictions with times either in unix time or a text format, and heights in feet or meters. I had been able to derive the clock times of each prediction. I would now like to graph this

Re: [R] to draw a smooth arc

2007-05-01 Thread Jim Lemon
Paulo Barata wrote: Dear R-list members, I would like to draw a smooth arc. I can draw an arc parametrically, but this produces an arc too coarse, even allowing for different increments in sequence t in the example below. Function symbols (graphics) does produce a smooth circle, but it

Re: [R] Can a hyperlink be placed, thorugh R programming, on a graph?

2007-04-27 Thread Jim Lemon
Aldi Kraja wrote: Hi, If I use x-1:10 y-rnorm(10,0,1) ### pdf(file=c:\\aldi\\test.pdf) plot(x,y) segments(x,y,x+2,y+2) segments(x,y,x+0.5,y+0.5,col=3) ### dev.off() ### q() Is there a way that I can imbed in the graph plot for each point defined by x to x+0.5 and y to y+0.5

Re: [R] help

2007-04-26 Thread Jim Lemon
Natalie O'Toole wrote: Hi, Would anyone know how to calculate the modal value of LeafArea? Thank-you very much!! Nat __ Hi all, I have 2 questions: 1)How do I calculate the mean on an imported txt file? I've imported the file below and that's what it looks

Re: [R] convergence

2007-04-19 Thread Jim Lemon
rach.s wrote: hie.. how can i write a loop that makes algorithm keeps repeating until a solution is converged?do i use a for loop? i know that we can use for loop to ask for a number of repetitions, but how to use it to ask the algorithm to keep repeating until a solution is converged?

Re: [R] help comparing two median with R

2007-04-17 Thread Jim Lemon
Pedro A Reche wrote: Dear R users, I am new to R and I would like to ask your help with the following topic. I have three sets of numeral data, 2 sets are paired and a third is independent of the other two. For each of these sets I have obtained their basic statistics (mean, median,

Re: [R] indexing a subset dataframe

2007-04-16 Thread Jim Lemon
Mandy Barron wrote: Hello I am having problems indexing a subset dataframe, which was created as: waspsNoGV-subset(wasps,site!=GV) Fitting a linear model revealed some data points which had high leverage, so I attempted to redo the regression without these data points:

Re: [R] Reasons to Use R

2007-04-13 Thread Jim Lemon
(Ted Harding) wrote: On 12-Apr-07 10:14:21, Jim Lemon wrote: Charilaos Skiadas wrote: A new fortune candidate perhaps? On Apr 10, 2007, at 6:27 PM, Greg Snow wrote: Remember, everything is better than everything else given the right comparison. Only if we remove the grammatical blip

Re: [R] Reasons to Use R

2007-04-12 Thread Jim Lemon
Charilaos Skiadas wrote: A new fortune candidate perhaps? On Apr 10, 2007, at 6:27 PM, Greg Snow wrote: Remember, everything is better than everything else given the right comparison. Only if we remove the grammatical blip that turns it into an infinite regress, i.e. Remember, anything

Re: [R] Tweaking my plot of matrix as image

2007-04-12 Thread Jim Lemon
Wee-Jin Goh wrote: Greetings list, I have a rectangular 20 x 20 matrix with values in the range of [0 , 1]. I'd like to plot it as an image. To that end, I have used the image() function that seems to do what I want. Now, I just want to tweak it to look perfect. So here is my

Re: [R] Putting 2 breaks on Y axis

2007-04-12 Thread Jim Lemon
Inman, Brant A. M.D. wrote: R plotting experts: I have a bivariate dataset composed of 300 (x,y) continuous datapoints. 297 of these points are located within the y range of [0,10], while 2 are located at 20 and one at 55. No coding errors, real outliers. When plotting these data with a

Re: [R] 500 and above ignored

2007-04-10 Thread Jim Lemon
Constant Depièreux wrote: Hello, I have a data crunching program which causes me a problem. Some of the data are identified with an sign followed by a integer. No problem is experienced when analysing data below 500, but value above are ignored. Is there some limitation in R on

[R] bug in plotrix 2.2

2007-04-01 Thread Jim Lemon
Hi all, Sorry to report that there is a minor bug in the floating.pie function in the new version of plotrix. I inadvertantly changed the bouyancy constant and some users may find that they are farther down the ordinate than they should be. This will be fixed in version 2.2-1. Jim

Re: [R] substitute NA values

2007-03-31 Thread Jim Lemon
Sergio Della Franca wrote: Dear R-Helpers, I have the following data set(y): Test_Result #_Test t 10 f 14 f 25 f NA f 40 t45 t44 NA

Re: [R] Colored boxes with values in the box

2007-03-23 Thread Jim Lemon
Pappu, Kartik wrote: Hi all, I have a x, y matrix of numbers (usually ranging from 0 to 40). I need to group these numbers and assign a color to each group (for example 0 to 15 - Blue, 16-30- Yellow, and 31-40- Red). Then I need to draw a rectangular matrix which contains X x Y boxes

Re: [R] Truncated x-axis values

2007-03-23 Thread Jim Lemon
Urban, Alexander [EMAIL PROTECTED] wrote: Hello I'm new to this group. I looked up the last two hour in the help file and in the archives of this group, but didn't find anything. I hope my question is not too dump: I'm printing a graph with vertical labels on the x-axis (necessary due to

Re: [R] Ticks on barplots

2007-03-21 Thread Jim Lemon
Michael H. Prager wrote: Dear Gurus, Using R 2.4.1 on Windows XP I am generating stacked barplots of age-composition of fish populations (Y) over time (X). As there are many years, not every bars is labeled. When looking at the plot, it becomes difficult to associate labels with

Re: [R] Off topic:Spam on R-help increase?

2007-03-09 Thread Jim Lemon
Horacio Castellini wrote: Ya me parecía que no me pasaba solo a mi... :) uhmmm falló el spam-filter? Si, es todos que lee R-news, pero maravillo, que es el palabra para spam en español? Jim __ R-help@stat.math.ethz.ch mailing list

Re: [R] reading a text file with a stray carriage return

2007-03-08 Thread Jim Lemon
jim holtman wrote: How do you define a carriage return in the middle of a line if a carriage return is also used to delimit a line? One of the things you can do is to use 'count.fields' to determine the number of fields in each line. For those lines that are not the right length, you could

Re: [R] Identifying points in a plot that have duplicate values

2007-03-06 Thread Jim Lemon
David Lloyd wrote: I have code like this: - #--- -- x=scan() 0 0 0 0 0 1 2 3 4 y=scan() 1 1 1 2 2 1 3 4 5 plot(x,y) identify(0,1,3) #Allows me to select

Re: [R] barplot2, gap.barplot

2007-03-02 Thread Jim Lemon
Marc A. Rohling wrote: Hello, I try to handle a simple bar-plot, but it turns out to be not as simple as I thought. ... As you can see, because of the 4th bar (value 45), the other bars look a little bit tiny: there is too much white-space. What I need to handle this problem is a function

Re: [R] something missing in summary()

2007-02-17 Thread Jim Lemon
Gerard Smits wrote: just noticed that two key pieces of information are not given by the summary() command: N and SD. we are given the N missing, but not the converse. I know these summary value can be obtained easy, but can't understand why these two pieces of information are not

Re: [R] symbols hidden in polar.plot

2007-02-15 Thread Jim Lemon
Sumitrajit Dhar wrote: Hi Folks, Here is my attempt at a simple polar plot. pos - seq(0,360,by=5) tspk - rep(c(1,0,1),c(13,47,13)) require(plotrix) polar.plot(tspk,pos,rp.type=s,point.symbols=17,point.col=green4) I only see half the symbols, the other half of each symbol

Re: [R] heatmap color specification

2007-02-10 Thread Jim Lemon
Xiaohui wrote: ... Then, I did a heatmap for 'test' matrix. But for now, I want to specify each of the cell in the heatmap according to the values of the corresponding matrix elements of test. Let's say: col-c(red,yellow,green) for test[1,1], the color on the map should be red. I

Re: [R] R in Industry

2007-02-09 Thread Jim Lemon
Ben Fairbank wrote: To those following this thRead: There was a thread on this topic a year or so ago on this list, in which contributors mentioned reasons that corporate powers-that-be were reluctant to commit to R as a corporate statistical platform. (My favorite was There is no one to

Re: [R] setting a number of values to NA over a data.frame.

2007-02-08 Thread Jim Lemon
John Kane wrote: This is probably a simple problem but I don't see a solution. I have a data.frame with a number of columns where I would like 0 - NA Hi John, You might have a look at toNA in the prettyR package. Wait for version 1.0-4, just uploaded, as I have fixed a bug in that

Re: [R] R in Industry

2007-02-07 Thread Jim Lemon
Matthew Keller wrote: Far from flaming you, I think you made a good point - one that I imagine most people who use R have come across. The name R is a big impediment to effective online searches. As a check, I entered R software, SAS software, SPSS software, and S+ software into google.

Re: [R] Adding Scale to image

2007-01-31 Thread Jim Lemon
Peter Robinson wrote: Dear List, I have used the image() function to show a heat plot of a matrix of data whose intensity is color-coded. I have two questions that I have not been able to solve by using the help system or google. 1) How can one add a scale/legend that shows what

Re: [R] countour and poygon shading

2007-01-30 Thread Jim Lemon
J.M. Breiwick wrote: Hi, I have a contour plot and I want to shade a polygon (the area below a line) but the polygon shading wipes out the contour lines. Does anybody know how to shade the polygon and still see the contour lines? Thanks. Hi Jeff, If you're talking about polygon.shadow in

Re: [R] parallel coordinates plot

2007-01-17 Thread Jim Lemon
Marco Helbich wrote: Dear List, I want to make a parallel coordinates plot with the specific variables on the abscissa and the cases on the ordinate should be dyed dependent on another nominal variable from the data frame. I use the parcoord function. Hi Marco, If I understand your

Re: [R] quilt.plot

2007-01-12 Thread Jim Lemon
Dunja Drvar wrote: Dear all, I have a problem with plotting. I have an irregular set of data, where latitude is listed from bigger to smaller values. So, I cannot plot with image.plot. On the other hand, quilt.plot solves the problem, but it can't take the definition of color. It gives the

Re: [R] setting new working directories

2007-01-05 Thread Jim Lemon
Bill Shipley wrote: Hello, and Happy New Year. My default working directory is getting very cluttered. I know that I should be using a different working directory for each project (I work in Windows), but do not know how to go about creating different ones and moving back and forth between

Re: [R] color of opposite sign values in filled.contour

2007-01-05 Thread Jim Lemon
Claudia Tebaldi wrote: Dear R-helpers, I'm plotting geophysical data in the form of contours using filled.contour. The display would be much more effective if the areas with negative values could be color coded by -- say -- cold colors in the range of blue to green, and conversely the

Re: [R] Genotype importing from Sequenom

2006-12-30 Thread Jim Lemon
Farrel Buchinsky wrote: Sequenom has an odd format of calling a SNP genotype gg [1] C GA A C C AG C C T G homozygous A is called A and heterozygous is called AT The genetics package cannot handle the fact that some genotypes are declared with 2 letter while other are declared

Re: [R] counties in different colours using map()

2006-12-28 Thread Jim Lemon
Tord Snäll wrote: Hi, I would like to plot a map of US counties using different colors. map() seems to be the function to use, e.g. library(maps); map('usa'); map('county', 'colorado', add=T,fill = T, col=c(1:5)) plots Colorado counties using colours 1 to 5. However, I want each color

Re: [R] Problem to generate training data set and test data set

2006-12-25 Thread Jim Lemon
Aimin Yan wrote: I have a full data set like this: aa basaas bms ams bcuacu omega y 1 ALA 0 127.71 0 69.99 0 -0.2498560 79.91470 outward 2 PRO 0 68.55 0 55.44 0 -0.0949008 76.60380 outward 3 ALA 0 52.72 0 47.82 0 -0.0396550 52.19970 outward

Re: [R] OT: any recommendation for scripting language

2006-12-23 Thread Jim Lemon
Wensui Liu wrote: Right now, I am using SAS and S+/R. As a new year resolution, I am planning to learn a scripting language. from statisticians' point of view, which scripting language is worth to learn, perl, python, or any other recommendation? (Most likely, I will be learning it in

Re: [R] cohen kappa for two-way table

2006-12-11 Thread Jim Lemon
Dylan Beaudette wrote: Greetings, I am a bit confused by the results returned by the functions: cohen.kappa {concord} classAgreement {e1071} when using a two-way table. for example, if I have an matrix A, and a similar matrix B (same dimensions), then: matrix A and B can be

Re: [R] Show date on graph

2006-12-05 Thread Jim Lemon
Syed Abid Hussaini wrote: I have a character 2006-11-06 which was originally scanned from a csv file. This character is named date. I now use mtext (date) on a plot and i see strange cluttered characters instead of 2006-11-06. I tried many ways but i dont know whats going on. Then for

Re: [R] Plot with two seperate y axis

2006-11-26 Thread Jim Lemon
Thorsten Muehge wrote: Hello, I would like to plot the following matrix: Wk=x achsis. Para 1 = left y-axis as a barplot para 2 right y-axis as a normal scatter plat. I could not find such a solution in any of my documentation. Can someone help me? Thanks a lot Thorsten WkPara

Re: [R] axis in an image() plot

2006-11-26 Thread Jim Lemon
Ricardo Rodríguez - Your XEN ICT Team wrote: Hi all, I've found quite usefull colored-grid created by image() but I'm facing a doubt I am not able to solve. Given the following data rectangle... 1 2 3 4 5 6 7 8 9 10 11 12 13 14 1 12 22 0 7 2 1 0 2 0 2 6

Re: [R] advanced plotting

2006-11-22 Thread Jim Lemon
downunder wrote: Hi all. I need some help. I have to plot so many observation in a coordinate system that you can't see really much. Is there any possiblilty in R to reduce the size of a plotted point? In the plot command i could find a solution. plot(,type = p ,..) thanks in advance

  1   2   3   >