Re: [R] boxplot issue

2010-10-16 Thread Jim Lemon
On 10/16/2010 12:50 AM, Jonas Josefsson wrote: Hi! I am trying to produce a graph which shows overlap in latitude for a number of species. I have a dataframe which looks as follows species1,species2,species3,species4. minlat 6147947,612352,627241,6112791 maxlat

Re: [R] Question about Density Plot

2010-10-19 Thread Jim Lemon
On 10/18/2010 11:34 PM, Ignacio Ibarra Del Río wrote: Hi I've attached an example about something I want to do in R. This example was done in a Fortran application called ASGL. Here's an example in matplotlib http://matplotlib.sourceforge.net/examples/pylab_examples/hexbin_demo.html

Re: [R] points(x,y), mean and standard deviation

2010-10-19 Thread Jim Lemon
On 10/19/2010 07:41 PM, ashz wrote: Hi, I have a data set with 3 rows (X=date, Y1=arithmetic mean and Y2=standard deviation). How can I create a graph(e.g., points) which will show the +-stdev as well (similar to excel). Hi ashz, See FAQ 7.38. Jim

Re: [R] Plot help

2010-10-21 Thread Jim Lemon
On 10/20/2010 08:34 PM, Peter Francis wrote: Dear List, I am relatively new to R and am trying to create more attractive plots than excel can manage! I have looked through the various programmes ggplot, lattice, hmisc etc but my case seems to be not metnioned, maybe it is but i have not

Re: [R] histograms resulting from call to soil.texture

2010-10-21 Thread Jim Lemon
On 10/21/2010 10:03 AM, emorway wrote: Hello, Using the dataset below I produce a soil.texture plot (R code for this included at the end). One will notice I have plotted the points based on whether or not they are in a region called 'upstream' or 'downstream'. I'm curious if there is a way to

Re: [R] Contour Plot on a non Rectangular Grid

2010-10-25 Thread Jim Lemon
On 10/25/2010 03:30 AM, Lorenzo Isella wrote: Hello, I feel I am drowning in a glass of water. Consider the following snippet at the end of the email, where I generated a set of {x,y,s=f(x,y)} values, i.e. a set of 2D coordinates + a scalar on a circle. Now, I can get a scatterplot in 3D, but

[R] font.lab and font.axis

2010-10-25 Thread Jim Lemon
Hi all, In the course of ongoing improvement of plotrix, I was alerted to the fact that setting, e.g.: par(font.lab=3, font.axis=3) only seems to work for plot (and maybe other functions), but not for axis. par(font=3) works for everything (except the title, which is probably specified

Re: [R] runtime on ising model

2010-10-26 Thread Jim Lemon
On 10/26/2010 04:50 PM, Michael D wrote: So I'm in a stochastic simulations class and I having issues with the amount of time it takes to run the Ising model. I usually don't like to attach the code I'm running, since it will probably make me look like a fool, but I figure its the best way I

Re: [R] Changing origin of line in radial plot

2010-10-28 Thread Jim Lemon
On 10/28/2010 07:14 AM, Gonzalo Garcia-Perate wrote: I am creating radial plots to visualise popularity of a series of topics, I was wondering if someone has come across a radial plot in which the lines originate from the edge of the plot instead of the centre, does anyone know how can this be

Re: [R] Changing origin of line in radial plot

2010-10-29 Thread Jim Lemon
On 10/28/2010 10:38 PM, Gonzalo Garcia-Perate wrote: Jim, thanks for your reply, it works! but the results are not what I expected. What the code does now is completely reverse the central chart area, so what was coloured before now is white, see here http://www.flickr.com/photos/gonzillaaa/

Re: [R] Plots inside a Plot

2010-11-01 Thread Jim Lemon
On 11/01/2010 09:59 PM, Knut Krueger wrote: hi, is it possible to draw a plot inside another plot f.e in the upper right corner. I do not mean the possbility par(mfrow = c(2,2). Hi Knut, Try the subplot function in the TeachingDemos package. Jim

Re: [R] One question on heatmap

2010-11-03 Thread Jim Lemon
On 11/03/2010 02:50 AM, Hua wrote: ... When I try to make heatmap based on this gene expression value table, I found that, when I set 'scale' to 'column', the heatmap will be always be red. I think this is because, there's very large values in the matrix (gene Actb), while the most are just

Re: [R] Plotting a grid of directly specified colours

2010-11-05 Thread Jim Lemon
On 11/05/2010 03:00 AM, Peter Davenport wrote: Dear R-help, Could any of you direct me to a function for plotting a grid of colours, directly specified by a matrix of hex colour codes? In other words I'm looking for a heatmap() or image()-like function to which I can specify the colour of each

Re: [R] how do i plot this hist?

2010-11-09 Thread Jim Lemon
Hi casperyc, While Jim Holtman's solution is quite neat, I thought I would add a multiple histogram to the discussion in case that was what you wanted: library(plotrix) barp(t(x.m[,2:5]),names.arg=x.m[,1],col=rainbow(4)) legend(20,2500,paste(V,2:5,sep=),fill=rainbow(4)) Jim

Re: [R] : unusual combinations of categorical data

2010-11-09 Thread Jim Lemon
On 11/09/2010 09:25 AM, Alan Chalk wrote: Regarding unusual combinations of factors in categorical data. Are there any R packages that can be used to identify the outliers i.e. unusual combinations in categorical datasets ? Hi Alan, If your factors are dichotomous and you are looking for

Re: [R] Centring titles for pairs of plots.

2010-11-09 Thread Jim Lemon
On 11/10/2010 11:31 AM, Rolf Turner wrote: I would like to centre titles for pairs of plots in a 3-x-2 array. Each row of the array corresponds to a calendar year and I would like to have the year value centred between the two plots in the row, and just above their upper edges. I have

Re: [R] format as percentage

2010-11-10 Thread Jim Lemon
On 11/10/2010 07:55 PM, Santosh Srinivas wrote: Basic question ... checked the help page but the only answer was to use paste! Is there any way to format as %? degree = c(0.20,0.5) degree [1] 0.2 0.5 print(degree) [1] 0.2 0.5 Hi Santosh, If you want to scale proportions to percentages,

Re: [R] changing the limits of a secondary y-axis in a barplot

2010-11-17 Thread Jim Lemon
On 11/17/2010 03:06 PM, anna.richa...@csiro.au wrote: Hi, I hope this is a simple question. I am having trouble changing the scale of a secondary y-axis on a barplot. When I run the code below the limits set for the first axis are always applied to the second axis as well. I am using the

Re: [R] Making a line in a legend shorter

2010-11-22 Thread Jim Lemon
On 11/22/2010 01:38 PM, Luis Felipe Parra wrote: Hello, I am putting a legend with lines in a line plot and I would like to make the lines in the legend shorter. Does anybody knows how to do this? Hi Felipe, The only rather clunky way I can think of is to use pch=- instead of lty or lwd.

Re: [R] Some questione about plot

2010-11-22 Thread Jim Lemon
On 11/22/2010 10:14 PM, romzero wrote: Q1: How can i draw LSD (Least significant difference) on a plot? Like this... http://r.789695.n4.nabble.com/file/n3053430/LSD.jpg Q2: How can i draw the axis secondary scale? Hi romzero, This is somewhat of a guess, but: segments(2.3,1.6,2.3,1.6+value

Re: [R] More detail in chart axis?

2010-11-23 Thread Jim Lemon
On 11/23/2010 07:24 PM, Noah Silverman wrote: Hi, I have a series of data (about 80,000 pairs of x,y). Plotting it shows a great chart. However, R has randomly chosen about 6 labels for my x axis. Now, clearly I can't show them all, but would like some control over the granularity of what is

Re: [R] Custom ticks on x axis when dates are involved

2010-11-24 Thread Jim Lemon
On 11/25/2010 06:27 AM, Monica Pisica wrote: ... Now the graph looks very close to what i want, but i know that my ticks actually are not exactly at 01/01/ as i would like, although i suppose my error is not that much in this instance. However i would really appreciate if i can get the

Re: [R] How to load data file without attribute names?

2010-11-27 Thread Jim Lemon
On 11/27/2010 11:45 PM, 44whyfrog wrote: Hi all, I'm new to R and I'm struggling with loading a data file without attribute names, like: 1,72,0,5.6431,28.199 1,72,0,12.666,28.447 1,72,0,19.681,28.695 1,72,0,25.647,28.905 It has no names for the columns nor the rows. I tried data-

Re: [R] How to mean, min lists and numbers

2010-07-13 Thread Jim Lemon
On 07/13/2010 01:10 AM, g...@ucalgary.ca wrote: I would like to sum/mean/min a list of lists and numbers to return the related lists. -1+2*c(1,1,0)+2+c(-1,10,-1) returns c(2,13,0) but sum(1,2*c(1,1,0),2,c(-1,10,-1)) returns 15 not a list. Using the suggestions of Gabor Grothendieck,

Re: [R] R graphic help

2010-07-18 Thread Jim Lemon
On 07/18/2010 06:58 PM, Timothy O'Brien wrote: Dear All, I've done some searching, but to no avail -- I'm plotting x-y data via the plot command, and the log=x command. The graphed x values are in scientific notation (1e-02 1e-01 1e+00 etc). Might you have some idea on how I can get the plot

Re: [R] slplot issue

2010-07-19 Thread Jim Lemon
On 07/18/2010 11:22 PM, Peter Ehlers wrote: ... [Now, I'm having trouble with the pemqzrsTawYY function; can anybody help? :)] Certainly. That is in the WelshRabbit package, which requires the WalesSpeak and dumbBunny packages. Jim __

Re: [R] package plotrix

2010-07-19 Thread Jim Lemon
On 07/19/2010 01:59 AM, mau...@alice.it wrote: I installed package plotrix because reading its vignette it looks like it can help me solve a legend problem. The package instaleed correctly on my Mac OS/X 10.5.8 But I cannot reproduce the examples centered on function lgendg. library(plotrix)

Re: [R] problem with using tm

2010-07-19 Thread Jim Lemon
On 07/19/2010 03:59 PM, cob wrote: ... Error in normalizePath(path) : path[1]=C:\Program Files\R\R-2.11.1\library/slam: The system cannot find the file specified Hi cob, That path looks like it won't be read properly - the backslashes should be doubled. Jim

Re: [R] legend in R plot

2010-07-22 Thread Jim Lemon
On 07/22/2010 02:06 PM, li li wrote: Hi all, I am have some difficulty with the legend function. I need to add a legend to describe the different line types in a plot. The legend box is small. It did not include sufficient length of each line type to help distinguish the differnt line

Re: [R] legend in R plot

2010-07-22 Thread Jim Lemon
On 07/22/2010 09:39 PM, Jim Lemon wrote: On 07/22/2010 02:06 PM, li li wrote: Hi all, I am have some difficulty with the legend function. I need to add a legend to describe the different line types in a plot. The legend box is small. It did not include sufficient length of each line type

Re: [R] Hydrology plots in R

2010-07-23 Thread Jim Lemon
On 07/23/2010 12:56 AM, Sam Albers wrote: Hello, I am trying to create a plot often seen in hydrodynamic work than includes a contour plot representing the water speed with arrows pointing in the direction of flow. Does anyone have any idea how I might add arrows based on wf$angle (in the

Re: [R] Adding lines to two graphs alternately

2010-07-29 Thread Jim Lemon
On 07/29/2010 07:02 AM, Dennis Fisher wrote: Colleagues I do a series of calculations, then add some output as a line in a graphic. This is repeated a large number of times. Then, I move to the next panel and do a similar set of calculations, add lines, Many of the calculations are

Re: [R] adding new devices and plots

2010-07-30 Thread Jim Lemon
On 07/30/2010 04:15 AM, Erin Hodgess wrote: Dear R People: I have the following function: eplot function (x) { plot(x) z- locator(2) dev.new() plot(window(x, start = min(z$x), end = max(z$x))) } I want to generate a new plot from a subset of the original, but I want

Re: [R] Need a help to plot bar for time series Rain data

2010-07-30 Thread Jim Lemon
On 07/30/2010 06:51 PM, Nyanzura wrote: Hey Guys, I am quite new to R, am trying to plot a bar plot for my monthly rainfall data from 1920 to 1990. For every year I have the data from January to December. I have created this code: data-read.table(C://R//Data//Rain.txt, header=TRUE)

Re: [R] Need a help to plot bar for time series Rain data

2010-07-30 Thread Jim Lemon
On 07/30/2010 09:24 PM, Nyanzura wrote: Hi Jim, Thank you very much, let me check as you suggested. But in addition what do you think could be easy to interpret? Could you advice me please. I would probably start with: plot(times,type=l,...) if you can makes 'times' into a vector. Jim

Re: [R] Formatting datetime data for gantt.chart.

2010-07-31 Thread Jim Lemon
On 07/31/2010 03:12 AM, Andrew Noyes wrote: Overall goal: I'd like to have a visual representation of when certain computer applications are running over the course of a day (data will come from a SQL query later, but I'm using a csv for now). My idea is to use a gantt chart, but I'm running

Re: [R] Please help with getting started

2010-08-01 Thread Jim Lemon
On 08/01/2010 05:27 PM, MELOSHINI NAICKER wrote: Please help. I have installed R commander. I am currently running Windows 7. Everytime I type library(Rcmdr), it reads Error in library(Rcmdr) : there is no package called 'Rcmdr what can I do to rectify this problem. I am currently a student at

Re: [R] barplot and x-axis font size

2010-08-04 Thread Jim Lemon
On 08/04/2010 05:38 PM, Roslina Zakaria wrote: Hi all, I would like to draw a side by side bar plot. How can I adjust the the font size for the x-axis? Furthermore, I'm not sure what to write for 'at=?'. I tried cex.axis and cex.lab but still fail. Here is my data and code: t(all)

Re: [R] ticks label of plot

2010-08-05 Thread Jim Lemon
On 08/05/2010 07:14 AM, yan liu wrote: Hello, I had a question about how to label a axis of a plot. for example, my plot is plot(1:100, axes=F) box() axis(1) then, I want my y-axis has six ticks ( at=seq(0,100,10)) , but I don't want to label all the 11 ticks, I only want to label the 1st,

Re: [R] Plotting range of values in barplot()

2010-08-06 Thread Jim Lemon
On 08/06/2010 04:22 AM, yankeetilidie wrote: Hello, I am attempting to create a bar plot that contains a range of possible response values on the x-axis of 1 to 5 and contains barplots for the number of responses even in the event that there are 0 responses. For example, I have a data set that

Re: [R] Turning a source into a Package

2010-08-10 Thread Jim Lemon
On 08/10/2010 02:51 AM, JH wrote: I want to edit a function in the nlme package. I download the package source nlme_3.1-96.tar.gz from the link below then edit it one of the scripts inside of it. From this stage how can I turn it into a package that I can use in R?

Re: [R] Pie Chart in map

2010-08-10 Thread Jim Lemon
On 08/10/2010 03:04 AM, LCOG1 wrote: Hey R'rs, So im sick of dealing with ESRI products and am looking to stream line a process i now use GIS to do using R. I have made a lot of maps using R but have not yet seen a map that puts pie charts within the map to help represent data like the

Re: [R] how to draw a spherical quadrant

2010-08-10 Thread Jim Lemon
On 08/10/2010 05:32 PM, [Ricardo Rodriguez] Your XEN ICT Team wrote: Hi, Please, could you tell me if is there a R package that allow to draw spherical quadrants? The value of each point of the quadrant has to represent the power generated by a kite on that point tied to a line located in the

Re: [R] axis labels defaulting to scientific notation

2010-08-11 Thread Jim Lemon
On 08/11/2010 06:18 AM, Watkins, Janice wrote: The labels on the x-axis are defaulting to scientific notation no matter how small cex.axis is. How can I override scientific notation to get the labels to print out as specified? Here is the code (UNIT here is 0.0105):

Re: [R] x-axis label print in 45 degree

2010-08-15 Thread Jim Lemon
On 08/13/2010 05:14 AM, array chip wrote: Hi how can print x-axis labels in 45 degree in boxplot() (or plot in general)? I can use las=2 to print in 90 degree, but it looks ugly. Is there a simple option to do 45 degree easily? Hi John, Have a look at staxlab in the plotrix package,

Re: [R] Median abline how-to ?

2010-08-15 Thread Jim Lemon
On 08/13/2010 12:41 AM, David martin wrote: Hi, I'm newbie with R and don't really know how to add a median line to each of the groups that is not all the plot long. Here is a small working code that i have adapted for my purpose. If somebody could tell me how to draw median lines on each group

Re: [R] How can I read date format '02-Jan-02' ?

2010-08-16 Thread Jim Lemon
On 08/16/2010 03:27 PM, Dong-Hee Koh wrote: Hello, I am trying to read a database exported from SAS. It is form of csv, and the date format reads '02-Feb-99'. I used following code to convert character to date format, db$dob-as.Date(db$dob, format=%d-%b-%y). but it doesn't work, only seems NA.

Re: [R] How can I read date format '02-Jan-02' ?

2010-08-16 Thread Jim Lemon
On 08/16/2010 08:22 PM, Jim Lemon wrote: On 08/16/2010 03:27 PM, Dong-Hee Koh wrote: Hello, I am trying to read a database exported from SAS. It is form of csv, and the date format reads '02-Feb-99'. I used following code to convert character to date format, db$dob-as.Date(db$dob, format=%d

Re: [R] mtext coordinates

2010-08-18 Thread Jim Lemon
On 08/18/2010 08:40 PM, David Hajage wrote: Hello, I am using mtext to write some text below a graph: plot(1) mtext(foo, side = 1, line = 2, at = seq(0.6, 1.6, 0.2)) I would like to draw something near the foo texts, for example a segment. For this, I need to know the coordinates of the text

Re: [R] which one give clear picture-pdf, jpg or tiff?

2010-08-21 Thread Jim Lemon
On 08/20/2010 09:42 PM, Barry Rowlingson wrote: ... Client: “Time? Renaming files from *.jpg to *.eps takes time?!” So _that's_ why Windows hides the file extensions. Jim __ R-help@r-project.org mailing list

Re: [R] Date Inconsistencies? Buglets?

2010-08-21 Thread Jim Lemon
On 08/21/2010 12:35 AM, ivo welch wrote: ... (PS: Is there an easier way to tell R that I want a whole lot more tick marks and/or labels than what it gives me by default?) Hi Ivo, I haven't been able to find a way to make the axis function print more tick mark labels than it wants to. That's

Re: [R] One legend for a multiple graph page

2010-08-23 Thread Jim Lemon
On 08/23/2010 09:52 PM, Jordan Ouellette-Plante wrote: Hi, I am using the Sciplot package to graph barplots. Since I put 4 barplots per page and that the legends are always the same, I would like to find a way to have only one legend per page. Also, I would like it to be centered in the

Re: [R] Rotate x-axis label on log scale

2010-08-24 Thread Jim Lemon
On 08/24/2010 11:44 AM, Tim Elwell-Sutton wrote: Hi I'd appreciate some help with plotting odds ratios. I want to rotate the labels on the x-axis by 45 degrees. The usual way of doing this, using text - e.g. text(1, par('usr')[3]-2.25..) - gives no result when the y-axis is a log scale. I

Re: [R] how to plot y-axis on the right of x-axis

2010-08-25 Thread Jim Lemon
On 08/25/2010 09:12 AM, elaine kuo wrote: Dear List, I have a richness data distributing across 20 N to 20 S latitude. (120 E-140 E longitude). I would like to draw the richness in the north hemisphere and a regression line in the plot (x-axis: latitude, y-axis: richness in the north

Re: [R] Rotate x-axis label on log scale

2010-08-25 Thread Jim Lemon
On 08/25/2010 01:37 PM, Tim Elwell-Sutton wrote: Hi Jim Thanks for this. The staxlab function seems very useful. Unfortunately, the rotation option doesn't seem to work for me when the y-axis is on a log scale. It will stagger the labels but not rotate them. There's no error message. On a linear

Re: [R] Showing a line function on the ploat area

2010-08-26 Thread Jim Lemon
On 08/26/2010 01:06 AM, Neta wrote: I have a collection of results. I use R to get the linearization presented. how can I get R to show the equation and R^2 value on the plot area next to the graph? Hi Neta, You can use functions like textbox or boxed.labels (plotrix package) to display

Re: [R] Removing inter-bar spaces in barchart

2010-08-26 Thread Jim Lemon
On 08/26/2010 06:36 AM, Dennis Murphy wrote: ... It looks like he's using barchart() in lattice, which does have a box.ratio argument. That's why I didn't suggest using barp with width=0.5 Jim __ R-help@r-project.org mailing list

Re: [R] how to plot y-axis on the right of x-axis

2010-08-26 Thread Jim Lemon
On 08/26/2010 08:11 AM, elaine kuo wrote: ... One more request, if the label of axis X wants to be drawn from 5 to 1 (left to right) rather than 1 to 5, is it fine to change axis (4, at = NULL) ? If so, which value should be input ? Hi Elaine, There are a couple of ways to do this. One is to

Re: [R] export 4D data as povray density files

2010-08-27 Thread Jim Lemon
On 08/27/2010 08:11 PM, baptiste auguie wrote: Dear list, I wish to visualise some 4D data as a kind of colour / translucent cloud in 3D. I haven't seen such plots in R (but perhaps I missed a feature of rgl). The easiest option I found would be to export the data in povray's df3 (density file)

Re: [R] How to Adaptively Set Up the Coordinate Range of Multiple Graphs in One Figure

2010-08-31 Thread Jim Lemon
On 08/31/2010 08:26 PM, Wonsang You wrote: Hi, R-Helpers, I would like to ask about multiple graphs in one figure. I tried to execute the following codes. xlim- c(1,100) ylim- c(1,4) plot(NA, xlim=xlim, ylim=ylim) x- c(1:100) for(j in seq(1,10,by=1)) { y- j*x^2+log(j)

Re: [R] wavelet parameters with sowas

2010-09-01 Thread Jim Lemon
On 09/01/2010 01:16 AM, angela wrote: Hello everybody. My name is Angela. I'm doing wavelet using the sowas library. The problem I have is that I don't know how to choose the paremeters to describes differnt wavelet analysis. How I select the noctave, nvoice, w0, s0,...? Hi Angela, I located

Re: [R] how to represent error bar in a plot legend?

2010-09-02 Thread Jim Lemon
On 09/02/2010 04:56 AM, josef.kar...@phila.gov wrote: I have a simple barplot of 4 mean values, each mean value has an associated 95% confidence interval drawn on the plot as an error bar. I want to make a legend on the plot that uses the error bar symbol, and explains 95% C.I. How do I show the

Re: [R] R graphics: Add labels to stacked bar chart

2010-09-02 Thread Jim Lemon
On 09/02/2010 08:50 PM, Jens Oldeland wrote: ... I am looking for a way to add labels, i.e. absolute values, into a stacked bar chart using the basic plot functions of R. The labels should be inside the stacked bars. barpos-barplot(height,beside = FALSE, horiz=TRUE,col = c(2, 3))

Re: [R] representing NULL values in a vector

2010-09-06 Thread Jim Lemon
On 09/06/2010 03:00 PM, raje...@cse.iitm.ac.in wrote: Hi, I have a vector who contents should look like this, c d NULL e f etc or 4 5 6 NULL 7 8 9 how can I represent the null value? Hi rajesh, For character vectors, will probably suffice, but for numbers, you are probably stuck with NA.

Re: [R] dataframe row names from list

2010-09-06 Thread Jim Lemon
On 09/06/2010 09:41 PM, raje...@cse.iitm.ac.in wrote: Hi, I have a list which looks like this... str(y) List of 10 $ : chr [1:4] ABCD 5 0 1 $ : chr [1:4] DEF 15 1 16 $ : chr [1:4] AAA 2 17 8 $ : chr [1:4] SSS 15 25 1 $ : chr [1:4] III 15 26 4 $ : chr [1:4] OPQ 7 30 4 $ : chr

Re: [R] Over lay 2 scale in same plot

2010-09-07 Thread Jim Lemon
On 09/07/2010 02:57 AM, mamunbabu2001 wrote: Hi Everyone, I have two different data set in 2 different scale. I want to plot these two data in the same plot in their respective scale. So the plot will have 2 different scale. I have added an image below to show how it should look. does any bode

Re: [R] Help with unexpected symbol errors

2010-09-07 Thread Jim Lemon
On 09/07/2010 06:42 AM, Amit Patel wrote: Hi I have got a long script which will not run for me as i keep getting errors : source(clusterfixV1_4.r) Error in source(clusterfixV1_4.r) : clusterfixV1_4.r: unexpected symbol at 158: eck[k,2]- as.numeric(1) 159:

Re: [R] Alignment of lines within barplot bars

2010-09-10 Thread Jim Lemon
On 09/10/2010 01:35 AM, Steve Murray wrote: Dear all, I have a barplot upon which I hope to superimpose horizontal lines extending across the width of each bar. I am able to partly achieve this through the following set of commands: positions- barplot(bar_values, col=grey) par(new=TRUE)

Re: [R] Axis break with gap.plot()

2010-09-10 Thread Jim Lemon
On 09/10/2010 01:07 AM, Filoche wrote: Hi everyone. I'm trying to break the y axis on a plot. For instance, I have 2 series (points and a loess). Since the loess is a continuous set of points, it passes in the break section. However, with gap.plot I cant plot the loess because of this (I got

Re: [R] (no subject)

2010-09-10 Thread Jim Lemon
On 09/10/2010 07:38 PM, Tanvir Khan wrote: Hello, I'm trying to do bar plot where 'sex' will be the category axis and 'occupation' will represent the bars and the clusters will represent the mean 'income'. sex occupation income 1 female j 12 2male b

Re: [R] Over lay 2 scale in same plot

2010-09-11 Thread Jim Lemon
On 09/10/2010 10:43 PM, mamunbabu2001 wrote: Hi Josh, Thanks for your reply. I gave a reply yesterday but found that it was not posted. I managed to plot the bar pot and overlay points. The problem I am facing now is the spread of Y scale. The values I am plotting in Y scale are very close. so

Re: [R] create a '3D line plot'

2010-09-13 Thread Jim Lemon
On 09/13/2010 06:17 AM, Karl Brand wrote: Cheers! All excellent, runable examples helping me progress quickly. Being more a qualitative plot, the y-axis is less important. But it did get me thinking- Coloring each of the plotted lines, say 'altitude colors' like the classic volcano example to

Re: [R] How to generate a particular sequence ?

2010-09-13 Thread Jim Lemon
On 09/13/2010 07:19 PM, Feng Li wrote: Dear R, I have a vector, say a = c(1,2,4,5,6,8). Can I generate a vector or array (2-by-3-by-3) of this form c(1,2,1,2,1,2,4,5,4,5,4,5,6,8,6,8,6,8), in which every two elements in a have been repeated twice? I am to stupid today and could not figure this

Re: [R] Transparent Labels for Polar Plot

2010-09-14 Thread Jim Lemon
On 09/14/2010 06:25 AM, James MacCarthy wrote: Hello, I am currently using the polar.plot function in the plotrix package to graph data. Unfortunately, it seems that the default for the labels is to have a background color that is covering the line representing my data, making it difficult

Re: [R] Using feather.plot to try and generate a stick plot of current velocity data (and having issues)

2010-09-15 Thread Jim Lemon
On 09/15/2010 01:29 PM, Hughes, Ed wrote: Hello All, I am attempting to use the feather.plot function from the plotrix package to graph current velocity data as I have speed and direction. I let r be the first 10 rows of current speed data and theta be the first 10 rows of directional data

Re: [R] barplot: space between axis and bars

2010-09-15 Thread Jim Lemon
On 09/15/2010 09:54 PM, Daniel Stepputtis wrote: Hi all, I have a problem with a rather simple plot (which I have used several times) - barplot. I want to create a barplot, where no space is between the axis and the bars. Example: barplot(rnorm(10), space=0) creates a vertical axis at the

Re: [R] Using feather.plot to try and generate a stick plot of current velocity data (and having issues)

2010-09-16 Thread Jim Lemon
Hi all, After a bit of offlist correspondence, the problem with feather.plot was found to be with the input data format (lists) and the particular data revealed a bug in the function. A fix for the bug and a warning about lists as input will be in the next version of plotrix (3.0-1). Jim

Re: [R] use same breaks and colors, but the displayed scale are different-image.plot()

2010-09-16 Thread Jim Lemon
On 09/16/2010 12:05 PM, rusers.sh wrote: Hi all, I want to put several figures in a one figure for easy comparison, so i need to use the same methods to plot these figures. The following is an example. I also list my method, but it does not work. #Example data x- 1:10; y- 1:10; z- outer(

Re: [R] Help with customizing a histogram figure

2010-09-17 Thread Jim Lemon
On 09/16/2010 11:40 PM, Josh B wrote: Hi all, Please consider the following code: require(plotrix) l- list(rnorm(50),rnorm(50,sd=2),rnorm(50,mean=3)) multhist(l) I have two things I need help with: (1) In the output, there are empty spaces on the x-axis. How would I eliminate these spaces?

Re: [R] Preparing data frame for Plotrix kiteChart

2010-09-18 Thread Jim Lemon
On 09/18/2010 03:32 AM, Graham Smith wrote: ... What I am hoping for is: an x-axis labelled Distance with tick marks at 0, 5, 10,15,20 and 25. And, an y-axis labelled Species and tick marks labelled A, B and C. So I would appreciate some help on how the data should be prepared for kiteChart,

Re: [R] Arrrr.

2010-09-19 Thread Jim Lemon
On 09/19/2010 02:36 PM, Thomas Lumley wrote: Ahoy maties, As I'm sure everyone is aware, today (ISOdate(2010,9,19)) is International Talk Like A Pirate Day. I hope Arrr-help and Arrr-devel, and the whole of the Arrr community will be observing the day properly. We have been out in our

Re: [R] Tal Galili wants to stay in touch on LinkedIn

2010-09-20 Thread Jim Lemon
On 09/20/2010 07:25 PM, Edwin Groot wrote: Tal: Invite everyone on R-Help, why not? Please check your contact e-mail address! Edwin I think this is LinkedIn, as I have gotten a number of more or less spam notifications like this when the person involved had no idea they were sent. Jim

Re: [R] How to set the limit of abline (regression line of lm)

2010-09-20 Thread Jim Lemon
On 09/20/2010 07:31 PM, elaine kuo wrote: Dear List, I ran a regression model using lm and produced a regression line using abline. The line ranges from -20 to 20 in x axis, and the section I only want is from -20 to 0. Please kindly advise any function in abline () to set the range of

Re: [R] OT: Is randomization for targeted cancer therapies ethical?

2010-09-21 Thread Jim Lemon
On 09/21/2010 05:02 AM, David Winsemius wrote: ... Not all university libraries have access via that link and efforts at identifying the citation in Pubmed failed, so could I request a more complete citation, please? Oh never mind I got it with Google. If anyone else needs the ISSN of JASA in

Re: [R] change y axis distance

2010-09-21 Thread Jim Lemon
On 09/21/2010 08:55 PM, Joel wrote: Hi I got a barplot that has values between 0-150 and the y-axis shows the steps 0 50 100 and 150 but I would like to change it to 0 10 20 30... ...130 140 150 Hi Joel, This is a combination of the pretty calculation of axis tick intervals and the silent

Re: [R] group means of multi-way table?

2010-09-22 Thread Jim Lemon
On 09/22/2010 08:52 AM, Simon Kiss wrote: hello, can someone tell me how to generate the means for a data frame that looks like this? My data frame has many more variables, but I won't bother you with those; these are the one's that I'm interested in. Needless to say, z is the variable in which

Re: [R] dnorm

2010-09-23 Thread Jim Lemon
On 09/23/2010 05:42 PM, Sibylle Stöckli wrote: Dear R-users Idea: Plot a dnorm line using specific mean/sd to complete a histogram (skewed). xs:range of y-values, ys: dnorm function Problem: I expected to multiply the ys function with the sample size (n=250-300). I was wondering about a

Re: [R] Simple categorical scatter plot

2010-09-23 Thread Jim Lemon
On 09/23/2010 09:38 PM, Richard DeVenezia wrote: New to R. I am trying to create a simple xy plot wherein the line segment color is determined by a categorical column The following does not change colors for me, probably because I don't quite have a handle on either functions or value mapping

Re: [R] change tick spacing on the axis of a plot.

2010-09-24 Thread Jim Lemon
On 09/24/2010 05:42 PM, skan wrote: Hello How can I change the spacing of tick marks on the axis a plot? What parameters should I use on base plot or on rgl? Hi skan, The usual way this is done is to suppress the axes in the plot: plot(...,axes=FALSE) and then add the axes individually:

Re: [R] calculating mean and s.d. from a two-column table

2010-09-28 Thread Jim Lemon
On 09/28/2010 02:34 AM, Jonas Josefsson wrote: I have a two-column table as follows where age is in the 1st column and the number of individuals is in the 2nd. age;no 1;21 2;31 3;9 4;12 5;6 Can I use mean() and sd() to calculate the mean and standard deviation from this or do I have to

Re: [R] how to rotate the x axis lable to an interested angle?

2010-09-29 Thread Jim Lemon
On 09/29/2010 07:19 PM, komais wrote: http://r.789695.n4.nabble.com/file/n2718591/QQ%E6%88%AA%E5%9B%BE%E6%9C%AA%E5%91%BD%E5%90%8D--1.png I am a beginner for R,and i could not solve this problem.who can help me to solve it ? how to rotate the x axis lable to an interested angle as the picture

Re: [R] matrix plot

2010-09-30 Thread Jim Lemon
On 09/29/2010 08:55 PM, hairryharry wrote: Hi, Fairly new to R - have done basic plots but now faced with plotting a matrix/table of results -I know what I want but cannot find out how to do it. Basically have individual questions ( x) to which an organization can rate themselves 1-10 (y) what

Re: [R] (OT) Change of email address

2010-09-30 Thread Jim Lemon
On 09/30/2010 03:27 AM, Kevin E. Thorpe wrote: Ted is well aware of how to change his list email. He was advising people on the list who who have his old email address in their address books to remove it. How can we be sure, Kevin? This may be a desperate cry for help from Ted, cast adrift

Re: [R] plotting wind rose data

2010-09-30 Thread Jim Lemon
On 09/30/2010 04:12 PM, David Potts wrote: Hi List, I am trying to create a spatial representation of some wind data. I have the season, frequency, strength and direction of the wind from 10 different locations, the coverage of the area that I am interested in is not 100% there are small

Re: [R] barplots with 2 different scales

2010-10-01 Thread Jim Lemon
On 10/01/2010 09:19 AM, Jeremy Claisse wrote: Is there a way to create barplots with pairs of bars plotted on 2 different scales (i.e some bars would be plotted according to the scale on the y-axis on the left and other bars plotted according to a different scale on the right axis)? Hi Jeremy,

Re: [R] Inserting a plot into another

2010-10-01 Thread Jim Lemon
On 10/01/2010 01:01 AM, Filoche wrote: Hi everyone. I would like to know if it was possible to insert a plot into another one. For example I have a plot and I would like to add a smaller plot in the top right corner. Hi Phil, Take a look at the subplot function in TeachingDemos. Jim

Re: [R] text/mtext axis labels on graphs

2010-10-07 Thread Jim Lemon
On 10/07/2010 09:29 PM, Martin Hughes wrote: Hello everyone I have problem with axis labels on graphs, I have my code as below: plot(0,0,xlim=c(1,ncol(PA)),ylim=c(1,nrow(PA)),main=Stratigraphic Range,xlab=Time Bins,ylab=Taxa,cex.axis=1.5,cex.lab=2,cex.main=2.5,mgp=c(5,1.5,0),xaxt=n)

Re: [R] filled.contour: colour key decoupled from main plot?

2010-10-13 Thread Jim Lemon
On 10/12/2010 01:09 AM, Panos Hadjinicolaou wrote: Dear R colleagues, I am trying to plot some geophysical data as a filled contour on a continent map and so far the guidance from the R-help archives has been invaluable. The only bit that still eludes me is the colour key (legend) coming with

Re: [R] Bootstrapping Krippendorff's alpha coefficient

2010-10-13 Thread Jim Lemon
On 10/12/2010 08:58 PM, Łukasz Ręcławowicz wrote: Hi, I don't know how to sample such data, it can't be done by row sampling as default method on matrix in boot. Function takes matrix and returns single coefficient. #There is a macro but I want use R :)

Re: [R] vertical kites in KiteChart (plotrix)

2010-10-13 Thread Jim Lemon
On 10/13/2010 07:11 PM, elpape wrote: Dear everyone, I would like to create a kite chart in which I plot densities (width of the vertical kites) in relation to sediment depth (on reversed y-axis) for 6 different locations (Distances from seep site, on x-axis on top of the plot). The dataset I

  1   2   3   4   5   6   7   8   9   10   >