Re: [R] Confidence interval bars on Lattice barchart with groups

2005-06-25 Thread Deepayan Sarkar
On 6/25/05, Tim Churches [EMAIL PROTECTED] wrote: I am trying to add confidence (error) bars to lattice barcharts (and dotplots, and xyplots). I found this helpful message from Deepayan Sarkar and based teh code below on it: http://finzi.psych.upenn.edu/R/Rhelp02a/archive/50299.html However

[R] Fwd: lattice, panel.grid, and scales=list(tick.number=XXX)

2005-06-17 Thread Deepayan Sarkar
I just realised that I had forgotten to copy this to the list. -- Forwarded message -- From: Deepayan Sarkar [EMAIL PROTECTED] Date: Jun 15, 2005 12:13 PM Subject: Re: [R] lattice, panel.grid, and scales=list(tick.number=XXX) To: Berton Gunter [EMAIL PROTECTED] On 6/14/05

Re: [R] 3D Scatter Plot

2005-06-17 Thread Deepayan Sarkar
On 6/17/05, Lauren, Peter [EMAIL PROTECTED] wrote: Hello: I would like to be able to do a 3D scatter plot from 3 variables, 2 independent and 1 dependent. The closest R function I could find for this is cloud. However cloud uses, as input, a matrix where the value of each matrix

Re: [R] Lattice xyplot -- footnote font size / mtext

2005-06-03 Thread Deepayan Sarkar
On Friday 03 June 2005 15:47, Kittler, Richard wrote: Is there a way of controlling the font size and alignment of a footnote in an xyplot, or alternatively of using 'mtext' to place a footnote at the bottom of a graph? Your best bet is using 'page', e.g. library(grid) library(lattice)

Re: [R] lattice: change point color in densityplot()?

2005-06-03 Thread Deepayan Sarkar
On Friday 03 June 2005 17:49, M. K. wrote: When using the densityplot function from lattice library, is there a way to pick a different color *for the points only*? (I'm using densityplot(..., plot.points=TRUE, ...)) Using col parameter changes the color for both, the points and the curve.

Re: [R] tick marks in opposite axis xyplot

2005-06-01 Thread Deepayan Sarkar
On Wednesday 01 June 2005 13:04, Sebastian Luque wrote: Hello, I cannot find how to avoid drawing tick marks on the opposite side of axes in xyplot (lattice package). Say you have a simple plot: x - y - rnorm(10) xyplot(y ~ x) There are tick marks on the top and right axes. Is it possible

Re: [R] problem with chron scales in lattice

2005-06-01 Thread Deepayan Sarkar
On Wednesday 01 June 2005 12:12, Waichler, Scott R wrote: I can't get the scales parameter in xyplot of lattice to work as I expected. I'm using R-2.1.0 and lattice 0.11-8. There should be year labels from 1992 to 2004 for the x axis in the plot below, but instead only a few of them appear,

Re: [R] panel.axis() grid/lattice settings

2005-06-01 Thread Deepayan Sarkar
On Wednesday 01 June 2005 05:43, Pikounis, Bill [CNTUS] wrote: Hello, I wish to customize the tick marks and labels of axes in panels produced by high-level lattice functions, namely xyplot. I know I can use the scales argument to specify values for rot, cex, etc. in the top-level call.

Re: [R] Lattice: it seems, a bug in draw.key function

2005-05-20 Thread Deepayan Sarkar
On Friday 20 May 2005 07:05 am, Wladimir Eremeev wrote: Dear r-help, Now I am drawing graphs with xyplot function. In order to place a legend under the plots I use the key argument in the xyplot function. One of the 'key' components is 'divide', which defines a number of points on

Re: [R] Lattice: it seems, a bug in draw.key function

2005-05-20 Thread Deepayan Sarkar
On Friday 20 May 2005 10:05 am, Wladimir Eremeev wrote: Dear Deepayan, I suggest something like pointsGrob( x=if(key$divide1){(1:key$divide-1)/(key$divide-1)} else 0.5, [blah-blah-blah] ) This looks like your 3rd variant. However, I haven't try very hard

Re: [R] Lattice: how to get default ylim?

2005-05-19 Thread Deepayan Sarkar
On Thursday 19 May 2005 8:00 am, David James wrote: Hi, Within your panel function you can use current.viewport() to recover the active grid viewport and get xlim/ylim (in addition to other very useful information). Then you can use grid.text (plus any other grid.* function), e.g.,

Re: [R] Lattice: how to get default ylim?

2005-05-19 Thread Deepayan Sarkar
On Thursday 19 May 2005 9:11 am, David James wrote: Deepayan Sarkar wrote: v - current.viewport()## requires R 2.1.0 (I believe) No, I think it's been there for a while. However, AFAIR the fact that viewports have components xscale and yscale that can be accessed like

Re: [R] Problem with data frame when using xYplot?

2005-05-13 Thread Deepayan Sarkar
On Friday 13 May 2005 08:07 am, Sander Oom wrote: An off list response from Mat Soukop (thanks Mat!!) provides an even more elegant solution (see code below)! I have included the original code, so people can decide whether to plot in a single panel or in multiple panels. Now we have a fully

Re: [R] Lattice plot within a for loop does not happen?

2005-05-13 Thread Deepayan Sarkar
On Friday 13 May 2005 09:24 am, Barry Rowlingson wrote: BUT, when I stick this in a loop, I get a bunch of blank graphics devices. This happens even if the loop only executes once. I could just go through and do these one by one, but I was curious if I was overlooking something obvious.

Re: [R] Problem with data frame when using xYplot?

2005-05-13 Thread Deepayan Sarkar
On Friday 13 May 2005 10:36 am, Sander Oom wrote: Hi Deepayan! Deepayan Sarkar wrote: On Friday 13 May 2005 08:07 am, Sander Oom wrote: An off list response from Mat Soukop (thanks Mat!!) provides an even more elegant solution (see code below)! I have included the original code, so people

Re: [R] wireframe (reloaded): how to remove the frame around my plot?

2005-05-11 Thread Deepayan Sarkar
On Wednesday 11 May 2005 12:35, Marco Chiarandini wrote: Hello, I would like to remove the frame from wireframe, but that one only. I am currently doing trellis.par.set(axis.line,list(col=NA,lty=1,lwd=1)) but this has the flaw that also the tick lines of the axes disapper. I should add

Re: [R] Plotting means and confidence intervals by group factor using lattice graphics?

2005-05-05 Thread Deepayan Sarkar
On Wednesday 04 May 2005 10:30, Sander Oom wrote: Dear R graphics gurus, Another question about lattice graphics. This time I would like to plot means and confidence intervals by group factor in a lattice graph. I can not find any working lattice examples. Maybe a custom panel function is

[R] Re: Need some quick help with lattice - barchart

2005-05-05 Thread Deepayan Sarkar
On Thursday 05 May 2005 13:10, Ghosh, Sandeep wrote: For the following code below, the x-axis ticks are 1,2,3,4,5,6,7 when I was expection them to be 1,2,8,9,10,11,12. Please help me figure out where is the mistake. [...] colnames(testdata) - c('month', 'year', 'mean','stdDev','miceCount')

Re: [R] Lattice dotplot with symbols sized and colored

2005-05-03 Thread Deepayan Sarkar
On Tuesday 03 May 2005 06:39, David Kidd wrote: Sundar suggested setting up a theme which I have done... my.theme - function() { theme - col.whitebg() symb - theme$superpose.symbol symb$col= c(red,blue,green,yellow,orange,black,purple) #symb$pch is c(1,3,6,0,5,16,17) by default

Re: [R] Combining numeric vs numeric numeric vs factor graphs into one ps/pdf file

2005-05-03 Thread Deepayan Sarkar
On Tuesday 03 May 2005 10:44, Arenas, David R. CIV NAVAIR DEPT wrote: Dear R community, My previous email was incomplete because I used html format. Here it is again and sorry for any inconvenience: xyplot (lattice) has been great in displaying tons of data for my research. I have used

Re: [R] lattice plot problem!

2005-04-27 Thread Deepayan Sarkar
On Tuesday 26 April 2005 21:52, Ivy_Li wrote: Hello everybody, Could I consult you two questions? Recently I write some code about lattice plot. 1) bwplot function I know the lattice default background color is grey and the box color is green, but I don't like the color. So I change the

Re: [R] Problem with clipping in Lattice, and closing a postscript device

2005-04-26 Thread Deepayan Sarkar
On Tuesday 26 April 2005 15:27, VU HA wrote: I would appreciate any answer to the following two problems I am having with the Lattice package. First, in most instances of using Lattice, the produced graphs have some clipping, usually at the borders of the encompassing rectangles. An example

Re: [R] panel ordering in nlme and augPred plots

2005-04-25 Thread Deepayan Sarkar
On Monday 25 April 2005 09:40, Petr Pikal wrote: Dear all I am trying nlme together with Pinheiro/Bates book. I constructed grouped data object with suitable plotting layout (according to some common factor, panels from bottom to top are in increasing order). When I do nlme(... some

Re: [R] Help needed with lattice graph!

2005-04-22 Thread Deepayan Sarkar
On Friday 22 April 2005 03:29, Sander Oom wrote: Dear R users, If I manage to sort out this graph, it is certainly a candidate for the new R graph gallery (http://addictedtor.free.fr/graphiques/displayGallery.php)! I created the following lattice graph: library(lattice) tmp -

Re: [R] Expression in panel.text

2005-04-22 Thread Deepayan Sarkar
On Friday 22 April 2005 10:12, David Orme wrote: Hi, I've got a lattice xyplot and I want to superimpose correlation coefficients and p values on each panel. I've been trying to get this to work using something of the form: x - rnorm(400) y - rnorm(400) a - gl(4, 100) xyplot(y~x | a,

Re: [R] Suggestion for the posting guide

2005-04-21 Thread Deepayan Sarkar
On Thursday 21 April 2005 09:09, Bock, Michael wrote: I was preparing an e-mail for the help list and ran across a quandary. When asking for help it is useful to include the code/data so others can run your code and test it. I was running code on a data frame and wanted to include a small

Re: [R] Need help with R date handling and barchart with errorbars

2005-04-21 Thread Deepayan Sarkar
On Thursday 21 April 2005 17:44, Ghosh, Sandeep wrote: Hi All.. Have a question.. For the following r code testdata - as.data.frame(t(structure(c( 1/1/04,LV1,3.8,2,87, 2/1/04,LV1,3.2,3,28, 3/1/04,LV1,3.4,3,88, 4/1/04,LV1,3,2,26, 5/1/04,LV1,3.8,2,87, 6/1/04,LV1,3.2,3,28,

Re: [R] Strange behavior in Lattice when superimposing

2005-04-19 Thread Deepayan Sarkar
On Tuesday 19 April 2005 02:19, Adam Lyon wrote: Hi, I am trying to do a simple superimposing of two density plots and am seeing strange behavior (I haven't seen this reported elsewhere). This little snipit will make it apparent... a = rnorm(10) b = rnorm(100, mean=-2, sd=0.5)

Re: [R] Aspect ratio and limits

2005-04-19 Thread Deepayan Sarkar
On Tuesday 19 April 2005 11:40, Barry Rowlingson wrote: Marc Schwartz wrote: # Set height value as you require height - 3 X11(width = aspect * height, height = height) Does that get you what you need? I'm guessing that will work, but it just seems unsatisfactory, since if I

Re: [R] Aspect ratio and limits

2005-04-19 Thread Deepayan Sarkar
On Tuesday 19 April 2005 12:23, Barry Rowlingson wrote: Deepayan Sarkar wrote: Try (with a sufficiently recent version of R) xyplot(y~x, data=xy, aspect=iso) Is that what you want? Yes, that's the badger, as we say round here. Of course my two-point scatterplot

Re: [R] lattice graphics paging?

2005-04-19 Thread Deepayan Sarkar
On Tuesday 19 April 2005 18:30, Glen Luckjiff wrote: On linux/X11 how do I stop paging of multiple page graphics. I've tried par(ask = T). This works in S+6 but not R. Thanks very much. grid::grid.prompt(TRUE) Deepayan __ R-help@stat.math.ethz.ch

Re: [R] generalized linear mixed models - how to compare?

2005-04-17 Thread Deepayan Sarkar
On Sunday 17 April 2005 08:39, Nestor Fernandez wrote: Dear all, I want to evaluate several generalized linear mixed models, including the null model, and select the best approximating one. I have tried glmmPQL (MASS library) and GLMM (lme4) to fit the models. Both result in similar

Re: [R] generalized linear mixed models - how to compare?

2005-04-17 Thread Deepayan Sarkar
On Sunday 17 April 2005 12:07, Prof Brian Ripley wrote: On Sun, 17 Apr 2005, Deepayan Sarkar wrote: [...] GLMM uses (mostly) the same procedure to get parameter estimates, but as a final step calculates the likelihood for the correct model for those estimates (so the likelihood reported

Re: [R] Legend in xyplot two columns

2005-04-14 Thread Deepayan Sarkar
On Thursday 14 April 2005 05:30, Gesmann, Markus wrote: Dear R-Help I have some trouble to set the legend in a xyplot into two rows. The code below gives me the legend in the layout I am looking for, I just rather have it in two rows. library(lattice) schluessel - list(

Re: [R] Legend in xyplot two columns

2005-04-14 Thread Deepayan Sarkar
On Thursday 14 April 2005 10:29, Gesmann, Markus wrote: Thanks Deepayan! Your solution does excatly what I want. Further experiments and thoughts on my side brought me also to a solution. If I use the option rep=FALSE, and plot the bullit with lines and split the lines argument into two

Re: [R] abline() with xyplot()

2005-04-12 Thread Deepayan Sarkar
On Tuesday 12 April 2005 07:38, Chloe ARCHINARD wrote: Hello all, I'm a new user on R, and I used the abline function to draw a line on my graph but it doesn't work with xyplot(). With the plot function, abline() is ok but with plot it doesn't make what I want. Maybe it's a little thing to

Re: [R] removing characters from a string

2005-04-12 Thread Deepayan Sarkar
On Tuesday 12 April 2005 08:03, Liaw, Andy wrote: Just gsub() non-numerics with ; e.g.: gsub([a-zA-Z], , aB9c81) [1] 981 [I'm really bad in regular expressions, and don't know how to construct non-numerics.] (So am I, but) perhaps [^0-9]. Deepayan Andy From: Vivek Rao Is there

Re: [R] Two y-axis in lattice

2005-04-11 Thread Deepayan Sarkar
On Monday 11 April 2005 08:58, Sharon Kuhlmann wrote: Hi, I am trying to plot two time series in each panel of an xyplot in lattice, but I need a different y-axis for each time series. Is this possible? Depends. How do you want the axes to be displayed? A small reproducible example that we

Re: [R] Violin plot for discrete variables.

2005-04-09 Thread Deepayan Sarkar
On Monday 21 March 2005 11:08, Martin Maechler wrote: AndyL == Liaw, Andy [EMAIL PROTECTED] on Mon, 21 Mar 2005 08:14:20 -0500 writes: AndyL I'd suggest dotcharts, such as: AndyL x1 - sample(letters[1:4], 100, replace=TRUE, prob=c(.2, .3, .4, .1)) AndyL x2 -

Re: [R] restrict namespace inside functions?

2005-04-08 Thread Deepayan Sarkar
On Friday 08 April 2005 09:50, Vivek Rao wrote: Is there a way to exclude from the namespace all variables other than function arguments and local variables? For example, I would like the following code a = 2.0 mult - function(x) { pi = 3.14 return(pi*a*x) } print(mult(10.0))

Re: [R] axis colors in pairs plot

2005-04-07 Thread Deepayan Sarkar
On Thursday 07 April 2005 17:51, Anne York wrote: The following command produces red axis line in a pairs plot: pairs(iris[1:4], main = Anderson's Iris Data -- 3 species, pch = +, col = c(red, green3, blue)[unclass(iris$Species)]) Trying to fool pairs in the following way produces the

Re: [R] par(mfcol=2, mfrow=3) equivalent for trellis

2005-04-06 Thread Deepayan Sarkar
On Wednesday 06 April 2005 09:06, Dieter Menne wrote: Dear friends of lattice, I know how to position trellis plots with print(...,split,more=T) or (...position). Sometimes I wish I had something like the old par(mfcol=2, mfrow=3) mechanism, where the next free viewport is automatically

Re: [R] looking for a plot function

2005-04-06 Thread Deepayan Sarkar
On Wednesday 06 April 2005 15:18, bogdan romocea wrote: Dear useRs, I have a data frame and I want to plot all rows. Each row is represented as a line that links the values in each column. The plot looks like this: dfr - data.frame(A=sample(1:50,10),B=sample(1:50,10),

Re: [R] nlme SASmixed in 2.0.1

2005-04-05 Thread Deepayan Sarkar
On Tuesday 05 April 2005 18:40, Murray Jorgensen wrote: I assigned a class the first problem in Pinheiro Bates, which uses the data set PBIB from the SASmixed package. I have recently downloaded 2.0.1 and its associated packages. On trying library(SASmixed) data(PBIB) library(nlme)

Re: [R] a question about box counting

2005-04-04 Thread Deepayan Sarkar
On Monday 04 April 2005 13:22, Rajarshi Guha wrote: Hi, I have a set of x,y data points and each data point lies between (0,0) and (1,1). Of this set I have selected all those that lie in the lower triangle (of the plot of these points). What I would like to do is to divide the region

Re: [R] Ordering scales in xYplot.Hmisc

2005-04-01 Thread Deepayan Sarkar
On Friday 01 April 2005 12:41, Jose A. Hernandez wrote: Dear R community, I am using xYplot() from the Hmisc package. The package works great to plot means + CI. But I am having issues handling the scales. I am plotting Soil Clay content vs Soil depth by land use. Usually in this type of

Re: [R] pairewise plots

2005-03-29 Thread Deepayan Sarkar
On Tuesday 29 March 2005 08:58, Hai Lin wrote: Dear R users, I have a data generated as the following, dat - data.frame(matrix(sample(24), nrow=4)) dimnames(dat) -list(rownames=c('g1','g2','g3','g4'), colnames=c(A_CH1,A_CH2,B_CH1,B_CH2,C_CH3,C_CH3)) dat A_CH1 A_CH2 B_CH1 B_CH2 C_CH3

Re: [R] Lattice - parallel: xlim and adding lines

2005-03-29 Thread Deepayan Sarkar
On Tuesday 29 March 2005 17:04, Sundar Dorai-Raj wrote: T.A.Wassenaar wrote on 3/29/2005 4:17 PM: Hi Sundar, Thanks for the reply. And, oops, the panel.parallel.new shouldn't be in there. That is a revised panel function to color according to a group. As with strange, that would

Re: [R] help with plotting a grid on levelplot

2005-03-29 Thread Deepayan Sarkar
On Tuesday 29 March 2005 19:16, Jeff D. Hamann wrote: I'm trying to plot a grid over a levelplot print( levelplot( var1.pred~x+y, data=saw.pred, aspect=mapasp(saw.pred), col.regions=terrain.colors(80), main=main) ) using

Re: [R] Base and lattice graphics on the same graphics page

2005-03-29 Thread Deepayan Sarkar
On Tuesday 29 March 2005 22:32, John Maindonald wrote: Although base graphics does not mix with lattice in the one graph, I've found that print.trellis(position=..., ) and the use of par(fig=...) to put regular and trellis graphics on the one graphics page works like a treat, at least in

Re: [R] Error bars for Lattice Plots

2005-03-24 Thread Deepayan Sarkar
On Thursday 24 March 2005 08:21, Shawn Way wrote: Has anyone found a method for creating error bars in lattice plots? Yes. You'll have to be more specific to get anything useful (but check out xYplot in the Hmisc package). Deepayan __

Re: [R] Lattice : factor levels in the margins

2005-03-24 Thread Deepayan Sarkar
functions (Deepayan Sarkar may be able to confirm or deny that). That can be overridden with par.settings = list(clip = list(panel = off)) The problem with doing this inside the panel function is that the panel function has no way of knowing (in general) where in the eventual layout

Re: [R] alternative to 'groups' for lattice bwplot()

2005-03-23 Thread Deepayan Sarkar
On Wednesday 23 March 2005 00:10, Sebastian Luque wrote: Hi, Is there some alternative to the 'groups' argument in lattice's bwplot function for boxplots? Say in the example below: bwplot(yield ~ site | year, data = barley) you want to have two side by side boxplots per site, corresponding

Re: [R] Solved: lattice xyplot() postscript (?) problem in R 2.0.0

2005-03-22 Thread Deepayan Sarkar
On Tuesday 22 March 2005 03:06, Gerrit Eichner wrote: Thanks to Uwe Ligges! The problem seems to have been my fault. Using his advice b) was the solution for me (under R-2.0.0). (My use of postscript() must have been a relict from my migration from S-PLUS to R.) Actually, that advice is more

Re: [R] Question with lattice xyplot

2005-03-22 Thread Deepayan Sarkar
On Tuesday 22 March 2005 10:26, Ghosh, Sandeep wrote: Hi All, I have a quick question and any help is greatly appreciated. For the following data when I try to produce the image using xyplot function in lattice package, the key has 4 rows instead of 2. Can anyone tell me what I'm doing wrong

Re: [R] Control of vertical spacing in Lattice key text?

2005-03-19 Thread Deepayan Sarkar
On Tuesday 15 March 2005 17:18, Patrick Connolly wrote: I find the key and legend functions in Lattice very useful. Trouble is, now I can see what else I'd like to be able to do with them. If I put a title on a key, it appears too close to the key itself, and if there's a line break in the

Re: [R] Sweave/margin

2005-03-18 Thread Deepayan Sarkar
On Friday 18 March 2005 15:49, Katharina Hoff wrote: Hi! I am currently using Sweave for writing my bachelor thesis - and I have a problem: I am using a LaTeX style (report) with quite big margin spaces. The Sweave generated LaTeX code floats into the margin - and it looks ugly. The text

Re: [R] plotmath question

2005-03-18 Thread Deepayan Sarkar
On Friday 18 March 2005 15:41, Berton Gunter wrote: R listers: I have been foiled by plotmath! (in R 2.01,Windows 2000) The task: Plot a normal density and label the ticks as mu - 3 sigma, mu - 2 sigma, , mu + 3 sigma, where the mu's and sigmas appear as Greek symbols, of course.

Re: [R] Varying grid.rect in different panels of a Lattice plot

2005-03-16 Thread Deepayan Sarkar
On Wednesday 16 March 2005 18:48, Leon Barmuta wrote: Dear r-help, Sleep-deprivation from having 2 youngsters under 2 around the house is fuzzing my brain, so please be gentle if the answer to this query is obvious! In the example below, I'm trying to use grid.rect to add grey rectangles

Re: [R] How to plot points as numbers/strings in lattice

2005-03-15 Thread Deepayan Sarkar
On Tuesday 15 March 2005 16:54, Owen Solberg wrote: Hello, I would be very grateful if anyone could help with what seems like a simple lattice task. I want to use xyplot, where the symbols for the plotted points are taken from another column in the data frame. So if the data frame looked

Re: [R] any book and tutorial about how to manipulate data with R/S+

2005-03-12 Thread Deepayan Sarkar
On Saturday 12 March 2005 14:42, Wensui Liu wrote: I am sorry that I did not state my question clearly. What I mean by data manipulation includes sort, merge, aggregate, transpose, data export and import, format, date time handle, and so on, which might be not important to statistician. I

Re: [R] Lattice bwplot error

2005-03-11 Thread Deepayan Sarkar
On Friday 11 March 2005 11:47, Yang, Richard wrote: Dear all; Searching the R site for answers to my problem, but found none. If this is what I'm guessing it is, you haven't searched carefully enough. This was a bug (in lattice) that was reported several times, but has been fixed long ago.

Re: [R] Aid with 3-D scatterplots

2005-03-09 Thread Deepayan Sarkar
On Wednesday 09 March 2005 13:17, Jim and Chana Milks wrote: I am attempting to classify pixels from a Landsat image by using their associated numbers in bands 2, 3, and 4 (It's from an assignment on classification). To aid me, I want to create a 3-D scatterplot using the cloud command. Due

Re: [R] Lattice device page options-margins

2005-03-09 Thread Deepayan Sarkar
On Wednesday 09 March 2005 13:54, Paul Murrell wrote: Hi Sundar Dorai-Raj wrote: Bock, Michael wrote on 3/9/2005 1:19 PM: I am using lattice to make figures as pdfs: trellis.device(device = pdf,file = Figure6.pdf,color = FALSE) I need to specify some blank space on the left-hand

Re: [R] 3d plot of regression squared error

2005-03-03 Thread Deepayan Sarkar
On Thursday 03 March 2005 13:04, Ross Clement wrote: Hi. I'm trying to create a 3d plot for a teaching example of finding a least-squares estimate of the parameters to fit a line to some data. I was hoping to get a nice plot with a clear, single minima where the derivative of the surface is

Re: [R] Rank-based p-value on large dataset

2005-03-03 Thread Deepayan Sarkar
On Thursday 03 March 2005 16:22, Sean Davis wrote: I have a fairly simple problem--I have about 80,000 values (call them y) that I am using as an empirical distribution and I want to find the p-value (never mind the multiple testing issues here, for the time being) of 130,000 points (call them

Re: [R] Rank-based p-value on large dataset

2005-03-03 Thread Deepayan Sarkar
On Thursday 03 March 2005 16:32, Deepayan Sarkar wrote: On Thursday 03 March 2005 16:22, Sean Davis wrote: I have a fairly simple problem--I have about 80,000 values (call them y) that I am using as an empirical distribution and I want to find the p-value (never mind the multiple testing

Re: [R] Text in lattice Graphics outside plot area

2005-03-02 Thread Deepayan Sarkar
On Wednesday 02 March 2005 09:29, Bock, Michael wrote: I am trying to get the same text printed on each page of a multi-page series of bar charts. The text need to appear in the upper left-hand corner of the page, outside of the plot area. A watermark might be the closest analogy to what I am

Re: [R] Graphing question/possibly lattice/xyplot

2005-03-02 Thread Deepayan Sarkar
On Wednesday 02 March 2005 16:24, Erin Hodgess wrote: Dear R People: I have a data frame with the variables calories, sodium and type, where type is either zero or one. I would like to produce a scatterplot with sodium on the horizontal, calories on the vertical and have the dots be clear

Re: [R] lattice -- panel order display

2005-03-01 Thread Deepayan Sarkar
On Tuesday 01 March 2005 08:50, Luis Ridao Cruz wrote: R-help, I'm using 'xyplot' in lattice package which plots length frecuencies by year (10). The order I get is not logical and the 'index.cond' argument to 'xyplot' is a bit cumbersome when it comes to plot a great deal of (in my case

Re: [R] lattice -- panel order display

2005-03-01 Thread Deepayan Sarkar
On Tuesday 01 March 2005 10:41, Luis Ridao Cruz wrote: I do the following: test$year - factor (test$year , ordered = TRUE) xyplot ( number~cm | year, data = test , type = l ) and still get the same. What you haven't told us yet is what's wrong with what you get. -Deepayan

Re: [R] Place more than one key with xyplot

2005-02-24 Thread Deepayan Sarkar
On Thursday 24 February 2005 06:12, Gesmann, Markus wrote: Dear R-users I have some trouble to generate more than one key with xyplot using the legend argument. I would like one key with rectangles: library(lattice) library(grid) key1 - list(rectangles = list(col=

Re: [R] other than default labels in lattice plot

2005-02-24 Thread Deepayan Sarkar
On Thursday 24 February 2005 08:03, Petr Pikal wrote: Dear all I solved a problem of customised labels on strips and boxes in bwplot by this construction. bbb - bwplot(zavoj ~ typmleti | pu) bbb$condlevels$pu - c(Povrchov prava, Bez PU) bbb$x.limits - c(Mleto, Mleto a stovno, Nemleto)

Re: [R] Ask for help on the parallel function output to a pdf file

2005-02-20 Thread Deepayan Sarkar
http://cran.r-project.org/doc/FAQ/R-FAQ.html#Why-do-lattice_002ftrellis-graphics-not-work_003f On Sunday 20 February 2005 15:35, [EMAIL PROTECTED] wrote: Dear all, Could you please give me a hand on parallel function from package lattice? On the R command console, the following

Re: [R] scales argument in lattice plots

2005-02-18 Thread Deepayan Sarkar
On Friday 18 February 2005 18:03, David Parkhurst wrote: I'm using R 2.0.1 under windows XP. I'd like to produce an xyplot with lattice, in which the x axis shows normally (with tics and numbers), but there are neither tics nor numbers for y. (I'm using layout=c(1,10), and ylab=.) From

Re: [R] Factor level coloring in trellis plot

2005-02-17 Thread Deepayan Sarkar
On Thursday 17 February 2005 04:39, T.A.Wassenaar wrote: Hi :) Was just wondering whether someone could help me with adjustments to trellis plots (parallel). I've got two way multivariate data. I want to make parallel plots for one of the factors, and want to color the lines according to

Re: [R] Lattice tick labels not all appearing

2005-02-17 Thread Deepayan Sarkar
On Thursday 17 February 2005 16:16, Patrick Connolly wrote: Recently I've encountered a phenomenon that can be illustrated thus: bwplot(runif(45)*100) Depending on the random seed, one or other or both of the outer tick labels are not labelled, even though there'd be heaps of space to do

Re: [R] Examples of multiple key grobs

2005-02-17 Thread Deepayan Sarkar
On Thursday 17 February 2005 19:39, Patrick Connolly wrote: The xyplot help page gives quite a lot of information how to use key and indicates that legend needs to be used if multiple keys are needed. However, it gives only a brief description of what the grob needs to contain to do multiple

Re: [R] panel/prepanel for polar plots ala xYplot

2005-02-16 Thread Deepayan Sarkar
On Wednesday 16 February 2005 11:11, Randall Pruim wrote: First a bit of background: After doing a search for a flexible polar plot function and coming up empty, I have begun writing one myself. Since I am new to writing mid-level graphics routines, this has required some learning about

Re: [R] Correct effect plots from lme() objects

2005-02-15 Thread Deepayan Sarkar
On Tuesday 15 February 2005 08:15, CG Pettersson wrote: Hello all! R2.0.1, W2k I posted this question to the list last Sunday without getting any replies on the list. I got two off the list though, suggesting me to plot manually as a second step, from estimable() or intervals() objects

Re: [R] lattice multiple plots per page

2005-02-15 Thread Deepayan Sarkar
On Monday 14 February 2005 18:12, Jeff Jorgensen wrote: Dear R-sters, I was wondering if anyone has encountered the following issues. I've figured out how to get multiple levelplots [library(lattice)] on a single plot. However, when I add text (adding axis labels for the entire four panel

Re: [R] Trellis barchart, column display order issue

2005-02-15 Thread Deepayan Sarkar
On Tuesday 15 February 2005 14:57, Bock, Michael wrote: I have searched the archives and instructions high and low but have not found what I need. I have a dataframe named Data with columns: AdjResND0 - the numeric result Parameter - the classification (chemical name) Sort - the order I

Re: [R] label outliers in boxplot and/or bwplot

2005-02-12 Thread Deepayan Sarkar
On Saturday 12 February 2005 09:04, John Fox wrote: Dear Deepayan, I wasn't aware of panel.identify(), which I too will find very useful. As you say, it is strange that you can identify points that aren't plotted; this is the case for my solution for boxplot() as well -- though the reason it

Re: [R] label outliers in boxplot and/or bwplot

2005-02-11 Thread Deepayan Sarkar
On Friday 11 February 2005 21:20, John Fox wrote: Dear Christoph, (I don't believe that this question was answered; my apologies if it was.) -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Christoph Lehmann Sent: Friday, February 11, 2005

Re: [R] xyplot() question

2005-02-10 Thread Deepayan Sarkar
On Thursday 10 February 2005 09:34, Christoph Scherber wrote: Dear R Users, I have an xyplot() where different plotting symbols are used for subgroups (originally used within S-Plus, but hopefully it´s also applicable to R users). How can I fit separate regression lines for every subgroup?

Re: [R] panel plot with log-scaled x-axis

2005-02-09 Thread Deepayan Sarkar
On Wednesday 09 February 2005 04:07, Christoph Scherber wrote: Hi, I´ll try to rephrase my question using the following example: xyplot(conc~uptake|Treatment+Type,data=CO2) Would it be possible to make each of the x axes log-scaled Yes, with xyplot(conc ~ uptake | Treatment + Type, data

Re: [R] Black and white lattice plots

2005-02-09 Thread Deepayan Sarkar
On Wednesday 09 February 2005 09:50, David Parkhurst wrote: How can I get lattice plots (with xyplot, etc.) to be produced in black and white, rather than in color? Im using R 2.0.1 under windows XP. This happens automatically for postscript output. Otherwise, start your device with

Re: [R] panel plot with log-scaled x-axis

2005-02-08 Thread Deepayan Sarkar
On Tuesday 08 February 2005 10:19, Christoph Scherber wrote: Dear all, Can anyone help me plotting a panel plot with log-scaled x axes? My formula looks like this: coplot(response~div|treatment+grass, panel=function(x,y,...){panel.xyplot(x,y,...);panel.lmline(x,y,...)}) Are you sure that

Re: [R] two issues

2005-02-03 Thread Deepayan Sarkar
On Thursday 03 February 2005 13:52, Dean Sonneborn wrote: I'm working on a graphic but have run into a road block about two issues. I don't have a color printer so I want to produce the graphic in black and white. I'm currently using this statement trellis.device(bg=white) Doesn't that

Re: [R] Combining two histograms

2005-02-02 Thread Deepayan Sarkar
On Wednesday 02 February 2005 07:42, Sean Davis wrote: I have data like: a - rnorm(2) b - rep(FALSE,2) b[sample(1:2,15000)] - TRUE Using Lattice graphics, I can produce two side-by-side histograms quite easily by: histogram(a | b) This should be ~a | b. That 'a | b' works is

Re: [R] several boxplots or bwplots into one graphic

2005-01-25 Thread Deepayan Sarkar
On Tuesday 25 January 2005 03:42, Christoph Lehmann wrote: many thanks for your great tip. I didn't know reshape. Unfortunately in my real data, the values of my variables are ont all within the same range. Therefore, what shall I change in the code to get for each plot a scale, which is

Re: [R] Selecting a subplot of pairs

2005-01-21 Thread Deepayan Sarkar
On Friday 21 January 2005 03:13, Yves Brostaux wrote: Hello, I'm trying to plot a set of 3 dependant variables (y) against 4 predictors (x) in a matrix-like plot, sharing x- an y-axis for all the plot on the same column/line : y1/x1 y1/x2 y1/x3 y1/x4 y2/x1 y2/x2 y2/x3 y2/x4

Re: [R] bwplot: how not to draw outliers

2005-01-17 Thread Deepayan Sarkar
On Monday 17 January 2005 14:51, Sundar Dorai-Raj wrote: RenE J.V. Bertin wrote: Hello, and (somewhat belated) best wishes for 2005. Can one order not to draw outliers in bwplot, or at least exclude them from the vertical axis scaling? If so, how (or what doc do I need to consult)? The

Re: [R] Black and white graphics and transparent strip panels with lattice under Sweave

2005-01-02 Thread Deepayan Sarkar
On Sunday 02 January 2005 19:40, Frank E Harrell Jr wrote: What is the most elegant way to specify that strip panels are to have transparent backgrounds and graphs are to be in black and white when lattice is being used with Sweave? I would prefer a global option that stays in effect for

Re: [R] xlim in lattice

2004-12-25 Thread Deepayan Sarkar
On Saturday 25 December 2004 16:29, Edwin Leuven wrote: dear all, i do the following (using ecdf from Hmisc, but that in turn uses lattice): ecdf(~stp | year*abil, group = bonus ) where year*abil defines 2x2 = 4 groups (and i've put year first so that years are columns since i want to

Re: [R] combination of scatterplot and image graph

2004-12-22 Thread Deepayan Sarkar
On Wednesday 22 December 2004 22:37, 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

Re: [R] PBIB datataset

2004-12-20 Thread Deepayan Sarkar
On Monday 20 December 2004 15:29, Ted Harding wrote: [...] The lme4 and nlme packages should not be loaded simultaneously. Use one or the other but not both. Doug, Thanks a lot for these clarifications. This still leaves me with a question or two. Suppose I want (as I do) to work

Re: [R] Customizing axis labels with alternating in lattice

2004-12-16 Thread Deepayan Sarkar
On Thursday 16 December 2004 09:58, Waichler, Scott R wrote: I would like to have complete control over which plots and which axes have labels in a lattice figure. I tried lots of vectors for the alternating setting in scales, but none worked. Here is what I would like to do for a 2 col x 3

Re: [R] Unsightly lines from x*y grid in levelplot with Postscript

2004-12-16 Thread Deepayan Sarkar
On Thursday 16 December 2004 12:57, Waichler, Scott R wrote: When I generate levelplot figures with Postscript, the lines from the underlying grid (i.e., the x and y in z ~ x* y) show up as faint white lines in the output. If I have a dense grid, the lines wash out the contour colors. I can

Re: [R] RE: adding perspectives to existing persp plots

2004-12-15 Thread Deepayan Sarkar
On Wednesday 15 December 2004 01:10, Corey Bradshaw wrote: Thanks, Romain. I've certainly used that to draw lines and points in the plots produced by 'persp'; however, my problem is that I need to incorporate an entirely new z function (not just a plane) onto the same plot (i.e., using the

<    1   2   3   4   5   6   7   8   9   >