Re: [R] Tick marks in xyplot

2004-06-23 Thread Deepayan Sarkar
Quoting Patrick Connolly [EMAIL PROTECTED]: On Wed, 23-Jun-2004 at 07:32AM -0500, Deepayan Sarkar wrote: [...] | 1. You can specify the limits, tick positions, and axis labels | individually for each panel (see documentation for 'scales' in ?xyplot; | all the relevant components

Re: [R] regarding saving R graphis images directly to directory

2004-06-20 Thread Deepayan Sarkar
On Sunday 20 June 2004 15:15, SAURIN wrote: Dear R, I am student at University of new haven, CT.I am trying to run my R scripts where I don't have X11() authentication to my account. I run those R scripts and when I generate any graphics I get error and it comes out from system. if

Re: [R] polygons around clusters of identically valued nodes in levelplot()

2004-06-19 Thread Deepayan Sarkar
On Monday 14 June 2004 15:58, Scott Waichler wrote: I'm looking for a way to plot lines on top of a levelplot(), where the lines are borders between cells of different values. The clines() function provides contours suitable for continuous data. I am dealing with discrete values, spatial

Re: [R] can't get text to appear over individual panels in multi-panel plot

2004-06-17 Thread Deepayan Sarkar
On Thursday 17 June 2004 19:37, Patrick Bennett wrote: I'm trying to learn how to create Trellis multi-panel plots, but I'm having some trouble reproducing the graphs shown in Venables Ripley (2002) (e.g., Figs 4.14 4.15). Actually, everything looks fine except for the fact that I can't see

Re: [R] can't get text to appear over individual panels in multi-panel plot

2004-06-17 Thread Deepayan Sarkar
On Thursday 17 June 2004 22:24, Patrick Bennett wrote: I neglected to say that I am using the R-Aqua interface and the MASS, grid, lattice packages. Here is one specific example where I'm having trouble. After loading the crabs data set, I create the figure with the following code (which

Re: [R] can't get text to appear over individual panels in multi-panel plot

2004-06-17 Thread Deepayan Sarkar
, at 11:47 PM, Deepayan Sarkar wrote: On Thursday 17 June 2004 22:24, Patrick Bennett wrote: I neglected to say that I am using the R-Aqua interface and the MASS, grid, lattice packages. Here is one specific example where I'm having trouble. After loading the crabs data set, I create

Re: [R] Lattice::qqmath -- groups option question

2004-06-10 Thread Deepayan Sarkar
On Thursday 10 June 2004 09:21, [EMAIL PROTECTED] wrote: Does the 'groups' option on qqmath just color the points differently in the main distribution or does it actually overlay separate quantile plots for each subset? I would like to be able to do the latter. The 'groups' option doesn't

Re: [R] Lattice::qqmath -- groups option question

2004-06-10 Thread Deepayan Sarkar
On Thursday 10 June 2004 10:38, [EMAIL PROTECTED] wrote: Thanks for the info. Given that I rule out qqmath would the best method be to make repeated calls to qqnorm without plotting and then overlay the results or is there a more elegant method? I don't think there's any good way currently.

Re: [R] Help with a Lattice plot that fails with an empty unique combination

2004-06-09 Thread Deepayan Sarkar
On Wednesday 09 June 2004 01:58, Tom Mulholland wrote: While using Lattice I received the following error. Error in if (xx != 0) xx/10 else z/10 : argument is of length zero In addition: Warning messages: 1: is.na() applied to non-(list or vector) in: is.na(x) 2: is.na() applied to non-(list

Re: [R] Printing Lattice Graphs from Windows

2004-06-07 Thread Deepayan Sarkar
On Sunday 06 June 2004 22:11, Charles and Kimberly Maner wrote: Hi. This did not work for me per my R output/session below: library(lattice) win.metafile() trellis.par.set('background', list('white')) This doesn't make sense; the components need to be named. Should be

Re: [R] contour lines on levelplot?

2004-06-07 Thread Deepayan Sarkar
On Sunday 06 June 2004 20:40, Spencer Graves wrote: With image and contour, one can get both colors and lines to enhance the image of a contour plot. What's the best way to do this with Lattice graphics? The following is one ugly hack, producing the desired result after much trial and

Re: [R] Printing Lattice Graphs from Windows

2004-06-06 Thread Deepayan Sarkar
On Sunday 06 June 2004 18:10, Charles and Kimberly Maner wrote: Hi folks. It looks like it's stirred some discussion ultimately resulting/concluding that this phenomena is a possible bug either in the lattice package or in R 1.9.0/1.9.1 itself. So, I'll stay tuned, so to speak, for either an

Re: [R] More than one series in a coplot

2004-06-04 Thread Deepayan Sarkar
On Friday 04 June 2004 23:04, Matthew Walker wrote: Hi! I would like to know, how do you plot more than one data series when using coplot? I think I know the answer if plot is being used: x - 1:10 y - 1:10 y2 - 1:10* 1.1 plot ( y ~ x, type=n ) points( y ~ x, type = b, col = red ) #

Re: [R] GLMM(..., family=binomial(link=cloglog))?

2004-06-01 Thread Deepayan Sarkar
On Tuesday 01 June 2004 17:25, Spencer Graves wrote: I'm having trouble using binomial(link=cloglog) with GLMM in lme4, Version: 0.5-2, Date: 2004/03/11. The example in the Help file works fine, even simplified as follows: fm0 - GLMM(immun~1, data=guImmun, family=binomial,

Re: [R] Parametric Curves

2004-06-01 Thread Deepayan Sarkar
On Tuesday 01 June 2004 09:01, Talita Leite wrote: Hi everybody! I'm trying to plot a parametric curve (three dimensions) using R but I didn't obtain good results. Somebody have already done something like that? Please help me! Could you give us more details ? To me, this would be having 3

Re: [R] panel function in a conditioned lattice graphic

2004-05-30 Thread Deepayan Sarkar
On Saturday 29 May 2004 20:18, Anthony Darrouzet-Nardi wrote: I have a followup question. Suppose I want to encode two different variables within a panel: one variable encoded by plotting character and one variable encoded by symbol color (as if I could use two groups variables). The

Re: [R] panel function in a conditioned lattice graphic

2004-05-29 Thread Deepayan Sarkar
On Saturday 29 May 2004 15:24, Anthony Darrouzet-Nardi wrote: I'm trying to use plotting character to encode the variable block from my dataset in a conditioned lattice graphic (R 1.9.0 on Mac OS 10.3.3). The data I'm using is the dataframe dryoutcover which is here (4k):

Re: [R] GLMM error in ..1?

2004-05-28 Thread Deepayan Sarkar
Is this the new experimental lme4 (version 0.6-x) ? If so, this is due to an error in our use of method dispatch. It has been fixed in the development version, and there should be a new release in a few days. On Friday 28 May 2004 19:32, Spencer Graves wrote: I'm trying to use GLMM in

Re: [R] no transparent background in bmp

2004-05-27 Thread Deepayan Sarkar
On Thursday 27 May 2004 17:24, Jeff D. Hamann wrote: I've been attempting to export a graphics file of my lattice plots and no matter what color I use for the bg= argument in the bmp/jpeg/png function, the background is grey. bmp(filename = c:/my_paper/resids.bmp, width=1024, height=1024,

Re: [R] SCO R

2004-05-27 Thread Deepayan Sarkar
On Thursday 27 May 2004 20:18, Greg Tarpinian wrote: Actually, it was very recent. I pulled the electronic version of the article from the Forbes website: I would think twice before taking forbes articles too seriously. For instance, they seem to think that protecting intellectual property

Re: [R] Sum of Squares in a lme model

2004-05-21 Thread Deepayan Sarkar
On Friday 21 May 2004 09:41, Federico Calboli wrote: Dear All, I would like to ask how to get the Sum of Squares from fitted lme model. I appreciate that lme maximises the likelihood (or REML) and uses likelihood ratio tests, but I just fail why I could not get the SS if I want them. I could

Re: [R] GLMM error message

2004-05-16 Thread Deepayan Sarkar
On Sunday 16 May 2004 16:03, Matt Loveland wrote: Hi, I wrote a few days ago about an error message I'm getting when I use GLMM from lme4 to do random effects modelling. When I add random effects, I get the following error message: Error in EMsteps-(`*tmp*`, value = control) : invalid

Re: [R] trellis plot problem with R-1.9.0-1

2004-05-13 Thread Deepayan Sarkar
On Monday 10 May 2004 05:46, Stephan Moratti wrote: I tried following commands: amp~time|subject/trial #this was the grouping structure of the data plot(dip,inner=~condition,layout=c(2,2)) after the plot command I obtained this error message: Error in if(!any(cond.max.level -

Re: [R] Barchart questions

2004-05-13 Thread Deepayan Sarkar
On Wednesday 12 May 2004 18:39, Neil Desnoyers wrote: I am attempting to produce a bar chart and am having some trouble with the panel.barchart command. That's not really helpful. If you expect us to help, you will have to tell us exactly what you did and why you are unhappy with the

Re: [R] GLMM question

2004-05-12 Thread Deepayan Sarkar
On Wednesday 12 May 2004 16:48, Matt Loveland wrote: Hi I'm using lme4 to do random effects modelling. I keep getting the following error message: Error in EMsteps-(*tmp*', value = control) : invalid source matrix I get the error when I include more than one random effect in

Re: [R] trellis plot problem with R-1.9.0-1

2004-05-10 Thread Deepayan Sarkar
On Monday 10 May 2004 05:46, Stephan Moratti wrote: I tried following commands: amp~time|subject/trial #this was the grouping structure of the data plot(dip,inner=~condition,layout=c(2,2)) after the plot command I obtained this error message: Error in if(!any(cond.max.level -

Re: [R] metafile copy and R 1.9.0

2004-05-08 Thread Deepayan Sarkar
On Saturday 08 May 2004 08:45, Patrick Giraudoux wrote: Dear all, I'm running into problem in R-1.9.0 that hasn't happened with R-1.8.x If I make a plot with xyplot(), and use the menu to either save to a metafile or copy to clipboard as a metafile to export to eg Powerpoint, I can just

Re: [R] plotting planes and lines in wireframe()

2004-05-07 Thread Deepayan Sarkar
On Friday 07 May 2004 16:07, [EMAIL PROTECTED] wrote: Hi R-helpers I would like to plot some planes which are perpendicular to the x-y plane, such as x=y. Is there a way to do this in wireframe? I realize that I am not plotting a function of x, y since there are infinite number of z's that

Re: [R] modifying the text size in splom

2004-05-06 Thread Deepayan Sarkar
On Thursday 06 May 2004 13:47, [EMAIL PROTECTED] wrote: All, I have long variable names that are being fed through splom (R 1.8.1). I'd like to resize the text printed on the diagonals to better display the names (unless anyone can suggest another approach - creative use of varnames). I've

Re: [R] Simple lattice graphics question

2004-05-04 Thread Deepayan Sarkar
On Tuesday 04 May 2004 05:05 pm, Sean Davis wrote: Dear all, I am using panel graphics to do a stripplot of a variable versus a shingle and putting a loess curve on the stripplot. I want the data jittered, but I can't seem to get the panel function to work. This jitter's the data, but of

Re: [R] Lattice: finding out xlim within panel function

2004-05-03 Thread Deepayan Sarkar
On Monday 03 May 2004 09:36, Lutz Prechelt wrote: Dear Lattice bit-meddlers, while within a panel function for xyplot, how can I find out the values of (effectively) xlim and ylim -- no matter whether they have been set explicitly or chosen by Lattice itself? I have just tried for an hour

Re: [R] contourplot, xyplot, aspect ratio, mfrow

2004-05-02 Thread Deepayan Sarkar
On Sunday 02 May 2004 03:30, Patrick Giraudoux wrote: Hi, I am gradually moving from the classical R plot functions to the library Lattice I have some questions about contourplot () and its arguments: 1/ I am working on geographical coordinates which makes necessary that the X (longitude)

Re: [R] changes to y-axis labels in lmList intervals plot

2004-05-01 Thread Deepayan Sarkar
On Saturday 01 May 2004 17:08, William Dieterich wrote: Dear List, I am plotting lmList objects using plot(intervals()) in nlme package. I want to make changes to the y-axis labels. When I try to change cex of y-axis labels using the following: fm1 - lmList(distance ~ age | Subject,

Re: [R] Plot.lme error

2004-04-29 Thread Deepayan Sarkar
On Thursday 29 April 2004 15:45, Yang, Richard wrote: Dear All; Attempting to reproduce Figure 4.15 of MEMSS (p. 171) in R using plot(Wafer, outer = ~ Wafer) yields an error: plot(Wafer, outer = ~ Wafer) Error in order(na.last, decreasing, ...) : Argument

Re: [R] helps on levelplot

2004-04-28 Thread Deepayan Sarkar
On Wednesday 28 April 2004 01:35, Yan Wang wrote: Thank you for the hints! I have some followup questions. About the panel function, here is the code I copied from the example: xyplot(NOx ~ C | EE, data = ethanol, prepanel = function(x, y) prepanel.loess(x, y, span = 1),

Re: [R] panel.grid

2004-04-20 Thread Deepayan Sarkar
On Tuesday 20 April 2004 12:16, W. C. Thacker wrote: Is there a way to get panel.grid to put the grid lines at specific locations? It would be nice to have them correspond to selected tick marks. ?panel.grid says: Arguments: h,v: For panel.abline, numerical vectors giving y and x

Re: [R] FW: Aligning different trellis plots

2004-04-20 Thread Deepayan Sarkar
On Tuesday 20 April 2004 14:31, Wiener, Matthew wrote: All -- I am trying to combine trellis plots and having a couple of small problems. I'm trying to combine two trellis plots that display data of different kinds. Each has a single row of plots, and I'd like to display them over one

Re: [R] ltext, plotmath, and substitute

2004-04-14 Thread Deepayan Sarkar
On Wednesday 14 April 2004 11:13 am, Dave Atkins wrote: I am interested to use plotmath functions within a panel function but am having some problems getting the code right. Within each panel I am plotting the data, fitting a regression line, and would like to print the regression equation.

Re: [R] lattice problem in R-1.9.0

2004-04-13 Thread Deepayan Sarkar
On Tuesday 13 April 2004 12:51, Sundar Dorai-Raj wrote: Hi all, I just installed R-1.9.0 on Windows 2000 from binaries. Yesterday, on R-1.8.1 I ran a script that looked like: library(lattice) tmp - expand.grid(A = 1:3, B = letters[1:2]) tmp$z - runif(NROW(tmp)) trellis.device(png, file

Re: [R] calling bwplot within a for loop

2004-03-22 Thread Deepayan Sarkar
On Monday 22 March 2004 11:55, Steven Lacey wrote: Hi, I am working with R 1.81. When I call bwplot() it prints the output to the windows device as it should. For example, d-data.frame(y=c(2,3,4,5,12,14,16,11),x=c(rep(group1,4),rep(group 2,4))) bwplot(y~x,data=d) This code results

Re: [R] Lattice, skip= and layout= problem, plotting object from nlme output

2004-03-22 Thread Deepayan Sarkar
On Monday 22 March 2004 07:15, Michael Dewey wrote: I generate a groupedData object library(nlme) obj - groupedData(mg10 ~ time | gp, data = common, outer = ~pct) gp has 101 levels, and pct has 3. There are 38, 25, 38 gps in each of the levels of pct respectively. I fit my model fit.rtg

Re: [R] how to change text in lattice plot headers ?

2004-03-22 Thread Deepayan Sarkar
On Monday 22 March 2004 18:53, Ernesto Jardim wrote: Hi, I'm using lattice (bwplot) to produce some plots. I want to put the value of the parameter and use plotmath on the top bar of each plot. Is there an easy way to do it ? What do you mean by 'top bar' ? The last example in

Re: [R] Trellis plot in multiple display with grid

2004-03-21 Thread Deepayan Sarkar
On Sunday 21 March 2004 12:08, Marco Chiarandini wrote: Dear all, I would like to plot a multipanel display. Each plot should have the curve over time of the solution produced by 10 different algorithms (groups of data). I handle this with: xyplot(quality~time | inst, data=profiles,

Re: [R] Trellis plot in multiple display with grid

2004-03-21 Thread Deepayan Sarkar
On Sunday 21 March 2004 13:23, Marco Chiarandini wrote: Thank you a lot! It works exactly as I desired. I dare to ask you another detail about Trellis multiple display plots. I would like to plot vertical lines in correspondence of the confidence intervals with the function below in order to

Re: [R] Draw abbreviated key (lattice, xyplot)

2004-03-18 Thread Deepayan Sarkar
Both auto.key and simpleKey are convenience tools to make key drawing easy in 'typical' cases. For more flexibility, define the key as a list (the structure is described under 'key' in ?xyplot). You may want to look at ?Rows as well, in conjunction with trellis.par.get(). See ?splom and

Re: [R] graphical interface

2004-03-16 Thread Deepayan Sarkar
On Tuesday 16 March 2004 09:52, Liaw, Andy wrote: From: Carlos Saavedra Dear R users,, I'm having difficulties when i use the gstat extensions in R especially with the graphical interface, as the variograms plots are depicted with gray background and cyan points for the number of

Re: [R] levels x-axis (histogram)

2004-03-13 Thread Deepayan Sarkar
On Sunday 14 March 2004 08:39, Christian Schulz wrote: Hi, how it's possible to get the level values (not the numeric values!) on the x-axis in a lattice histogram? I found nothing related in archives and my my attempts didn't success , but AKTIVE is a factor? I guess this would qualify as

Re: [R] levelplot problems !!!

2004-03-09 Thread Deepayan Sarkar
On Tuesday 09 March 2004 05:46, Hernan Dopazo wrote: Dear R users, I have changed my R version to the new 1.8.1 and some problems appears when using the previous levelplot code. This is a simple example: a -1:10 b -11:20 j - rnorm(100) grid-expand.grid(a = a, b = b) levelplot(j~a*b,

Re: [R] lattice, different plotting symbols

2004-03-04 Thread Deepayan Sarkar
On Thursday 04 March 2004 14:28, Matt Pocernich wrote: Hi, I am trying to plot different variables from a data.frame using lattice's xyplot using code like that below. How do I specify a symbol and color for the variable 'prob' and different one's for 'll.prob'? Thanks, Matt xyplot(

Re: [R] Changing background in splom et al.

2004-03-03 Thread Deepayan Sarkar
On Wednesday 03 March 2004 05:09, [EMAIL PROTECTED] wrote: Context: Windows XP, R 1.8.1 I'm studying Venables-Ripley MASS book and having a go at the many examples in library MASS. The code I'm checking (from script ch04.R) now is .. data(swiss) splom(~ swiss, aspect = fill, panel

Re: [R] saving plots as objects?

2004-02-27 Thread Deepayan Sarkar
On Friday 27 February 2004 01:59, Prof Brian Ripley wrote: On Fri, 27 Feb 2004, Deepayan Sarkar wrote: There has always been an update() method that's supposed to be used for this. No one uses it much, and it probably has a few bugs (but should be improved in time for R 1.9.0). From

Re: [R] Help with multicolored points in one plot

2004-02-26 Thread Deepayan Sarkar
On Thursday 26 February 2004 10:13, David Thibault wrote: Hello all, I have a situation where I'd like to plot points from multiple groups of data in one plot. I'd like each group's points to be colored a different color. I've seen people comment on how you can alternate colors by

Re: [R] levelplot add line

2004-02-26 Thread Deepayan Sarkar
On Wednesday 25 February 2004 14:00, Jeff Jorgensen wrote: Thanks for putting me on the right track. Sorry to be bothersome with another follow-up, but the code that calls the panel function (see below) doesn't seem to be working. What am I doing wrong? You are using this wrong. In

Re: [R] saving plots as objects?

2004-02-26 Thread Deepayan Sarkar
On Thursday 26 February 2004 14:47, Rajarshi Guha wrote: Hi I had two questions regarding plots: * Is there are way to save a plot in the form of an object such that it could be displayed/modified later? Depends on what you want to do. Probably not for regular (base) plots. The grid package

Re: [R] levelplot add line

2004-02-25 Thread Deepayan Sarkar
On Wednesday 25 February 2004 08:13, Jeff Jorgensen wrote: Deepayan, Thanks for the quick response. Just to make sure I understand, let me explain in a bit more detail what I am trying to do. I have created a levelplot (with contour lines and colored regions), and what I am trying to

Re: [R] levelplot add line

2004-02-24 Thread Deepayan Sarkar
On Tuesday 24 February 2004 18:03, Jeff Jorgensen wrote: R folks, I can't seem to find the instructions in the help files for the lattice package that explain how to add lines, such as with lines() or ?, to a levelplot. I'd be grateful if someone could point me in the proper direction. The

Re: [R] Error in multiple xyplots

2004-02-23 Thread Deepayan Sarkar
On Monday 23 February 2004 09:57, Rodrigo Abt wrote: Dear R-listers, I got an error when I try to plot two grouped data into a single win.metafile device: library(lattice) trellis.device(device=win.metafile,color=F,filename=Profiles-Var1.wmf ) par(mfrow=c(1,2)) par() settings have

Re: [R] Lattice graphics and strip function

2004-02-17 Thread Deepayan Sarkar
On Tuesday 17 February 2004 03:51, Luke Keele wrote: I am looking for examples of code that demonstrates the fine tuning of the strip panels in lattice graphics and uses plotmath characters. The code for the graphic is as follows: xyplot(lagy ~ n | rho1 * rho2, data= data, layout=c(2,6),

Re: [R] 2 bwplots - different colors

2004-02-16 Thread Deepayan Sarkar
On Monday 16 February 2004 10:37, Martina Pavlicova wrote: Hi all, I would like to draw one picture which would show two different types of boxplots using the same axes (kind of on top of each other). However, I would like to plot each boxplot using a different color or different shading

Re: [R] lattice: showing panels for factor levels with no values

2004-02-13 Thread Deepayan Sarkar
On Friday 13 February 2004 07:18, Dieter Menne wrote: [...] Dieter Menne: See also http://maths.newcastle.edu.au/~rking/R/help/01c/2820.html Deepayan, at that time I received an e-mail (not in the archives) from you saying that this feature was already in the code, but not yet active

Re: [R] lattice: showing panels for factor levels with no values

2004-02-12 Thread Deepayan Sarkar
On Thursday 12 February 2004 03:12, Wolfram Fischer - Z/I/M wrote: How to show panels for factor levels of conditioning variables which do have no values? E.g. there are panels for Grand Rapids when they have values: data( barley ) with( barley, dotplot(variety ~ yield | year *

Re: [R] lattice: scales beginning at zero with relation=free

2004-02-10 Thread Deepayan Sarkar
On Tuesday 10 February 2004 11:27, Wolfram Fischer wrote: Is there an easy way to have scales beginning with zero and ending with the local maximum data value of each panel when using a lattice function with ``scales=list( relation=free )''? Add prepanel = function(x, y, ...) list(xlim =

Re: [R] Dotplot: y-labels from rownames

2004-02-10 Thread Deepayan Sarkar
On Tuesday 10 February 2004 11:55, [EMAIL PROTECTED] wrote: How can I use row.names() as y-labels in Dotplot? How to set horizontal orientation for y-lables in lattice()? Dotplot(stcod1 ~ Cbind(statgh2,statgh2-1.96*segh2,statgh2+1.96*segh2)[og], subset=statgh2[og]0.1, data=h2inqerrg02st,

Re: [R] levelplot colorkey

2004-02-10 Thread Deepayan Sarkar
On Tuesday 10 February 2004 18:07, Jeff Jorgensen wrote: Dear R'ers, I've scanned available documentation and the web, but I can't seem to figure out where I've gone wrong in adding numbers to scale the colorkey in levelplot (Lattice package). For example, levelplot(z, contour=T, labels=T,

Re: [R] xyplot (lattice): colours of lines

2004-02-06 Thread Deepayan Sarkar
If i was not clear earlier, that is probably for my bad english many many thanks, for all this help you are giving me Umberto From: Deepayan Sarkar [EMAIL PROTECTED] To: Umberto Maggiore [EMAIL PROTECTED] Subject: Re: [R] xyplot (lattice): colours of lines Date: Fri, 6 Feb 2004 12:13:19 -0600

Re: [R] xypplot (lattice): colours of lines

2004-02-05 Thread Deepayan Sarkar
On Wednesday 04 February 2004 04:03, Umberto Maggiore wrote: Using data from a multicenter study with a parallel-group design comparing two treatments, I plotted each subject's time change of X after stratifying for center: xyplot(X ~ time | center, type=l, panel=panel.superpose,

Re: [R] xyplot (lattice): colours of lines

2004-02-05 Thread Deepayan Sarkar
I would need a real example to figure this out. Could you send me your data as an rda file (saved using save() and your code ? (No guarantees as to how fast I can reply, though. I'm somewhat busy with other things.) On Thursday 05 February 2004 01:52 pm, Umberto Maggiore wrote: It works.

Re: [R] Order in barchart

2004-02-03 Thread Deepayan Sarkar
On Tuesday 03 February 2004 01:26, Prof Brian Ripley wrote: I think you misunderstand what barchart does. It expects a formula, not a named vector, as its first argument. nm - names(T3) z - factor(nm, levels=nm) barchart(z ~ T3, xlab=Mean Values, col=dark blue) is probably what you are

Re: [R] lattice: adding text between grouped panels?

2004-01-20 Thread Deepayan Sarkar
On Tuesday 20 January 2004 04:14, Wolfram Fischer wrote: How one can add a text (e.g. the labels of an axis) in a space between grouped panels which was created by using the argument ``between''? Example: data(barley) dotplot(variety ~ yield | site * year, data=barley,

Re: [R] Multiple groupedData plots in a postscript file using a loop

2004-01-17 Thread Deepayan Sarkar
On Saturday 17 January 2004 08:58, Karl Knoblick wrote: Hallo! I want to plot multiple grouped data in a postscript file using a loop. As I use a loop no plot (or just one empty plot) is generated. Here an example: library(nlme) data(Loblolly) # example data from nlme

Re: [R] Lattices: Cloud: Background

2004-01-16 Thread Deepayan Sarkar
On Friday 16 January 2004 00:51, Mulholland, Tom wrote: When I first started using lattice I found the colour schemes a bit confusing. So eventually I came up with the colours I wanted. The code below was one of those attempts. One thing that happened however was that I kept shutting down the

Re: [R] Saving jpg of plot with grid.arrows

2004-01-16 Thread Deepayan Sarkar
On Friday 16 January 2004 10:02, Laura Quinn wrote: I am having problems exporting a plot to a jpg file. I am first setting up a basic plot, and then opening up a viewport and overlaying grid.arrows onto the plot - I don't seem able to save this plot with the overlaid arrows to a file, can

Re: [R] Different scales for keys in lattice levelplots

2003-12-20 Thread Deepayan Sarkar
On Friday 19 December 2003 14:23, Waichler, Scott R wrote: Can anyone tell me how to obtain a custom scale for the colorkey in each levelplot of a lattice? I am using lattice and levelplot to plot z = f(x, y) for multiple z variables. x and y values are the same across plots, but units for

Re: [R] Key for custom lattice panel function

2003-12-09 Thread Deepayan Sarkar
On Tuesday 09 December 2003 16:37, Hadley Wickham wrote: Hi all, I've created a custom lattice panel function for levelplot - instead of representing z by colour, it plot circles with radius proportional to z (in the style of the map plots of Jacques Bertin). I'm happy to email an example

Re: [R] grid packages since R-1.7.1

2003-12-04 Thread Deepayan Sarkar
On Thursday 04 December 2003 21:19, Patrick Connolly wrote: I'm having a spot of bother using code that worked with R-1.7.1 but will not work with 1.8.1. The beginning of the saga is with grid.polygon ostensibly not findable. One does exist in /R-1.8.1/library/grid/R, and when I

Re: [R] Problems installing lattice

2003-11-18 Thread Deepayan Sarkar
What version of lattice is this ? (try library(help = lattice)). What happens when you type library(grid) ? Both grid and lattice are recommended packages, so appropriate versions of both should have been installed along with R 1.8.1. From your error message (which mentions

Re: [R] Levelplot and NAs

2003-11-06 Thread Deepayan Sarkar
On Thursday 06 November 2003 05:33, AJ Smit wrote: Dear all How does one get a levelplot (lattice library) to plot NAs in a different colour to that specified in the default colorkey? You can't do it. If you don't need to distinguish NA's and missing points (that is (x,y) pairs that are

Re: [R]A matrix is full rank is equal to having independent columns?

2003-11-03 Thread Deepayan Sarkar
For any matrix, the following definitions hold: row rank: number of linearly independent rows column rank: number of linearly independent columns There is a theorem stating that these 2 numbers must be the same for any matrix, and (consequently) that number is defined as the 'rank' of the

Re: [R] barchart in lattice

2003-11-02 Thread Deepayan Sarkar
On Sunday 02 November 2003 04:17, Bernd Weiss wrote: Dear all, I have two factors 'country' and 'status' which I would like to plot via barchart (lattice). 'status' consist of three different levels and should be the grouping variable, the correct terminology would be 'conditioning'

Re: [R] grid: dividing units by numbers

2003-10-29 Thread Deepayan Sarkar
On Wednesday 29 October 2003 09:36, Wolfram Fischer wrote: How can I divide a unit by an number or average a vector of units, e.g.: u1 - unit( 3, 'npc' ) u2 - unit( 6, 'npc' ) u1 / 2 0.5 * u1 ( u1 + u2 ) / 2 0.5 * (u1 + u2) mean( unit.c(u1,u2) ) Not sure

Re: [R] Lattice: no grid name space

2003-10-27 Thread Deepayan Sarkar
On Monday 27 October 2003 04:19, Prof Brian Ripley wrote: On Mon, 27 Oct 2003, Edzer J. Pebesma wrote: The following now occurs to me when I try to load lattice (R 1.7.1, debian stable): library(lattice) Error in loadNamespace(i, c(lib.loc, .libPaths()), keep.source) :

Re: [R] How can strheight be calculated in lattice/grid?

2003-10-27 Thread Deepayan Sarkar
On Monday 27 October 2003 03:50, Wolfram Fischer wrote: If I have drawn a string with ``ltext( x, y, labels=first string )'' how can a draw a second string just one line (or strheight(X) below the first string regardless of the size and scales of the panel? No reliable (that is, documented

Re: [R] controling x-labels in xyplot (lattice) when x is POSIX object

2003-10-20 Thread Deepayan Sarkar
On Monday 20 October 2003 12:35, [EMAIL PROTECTED] wrote: Hi, V1.8.0 seems to allow DateTimeClasses as the x argument in xyplots (lattice). For example: x - seq.POSIXt(strptime(2003/01/01, format = %Y/%m/%d), strptime(2003/10/01, format = %Y/%m/%d), by = month) y -

Re: [R] problem with win.metafile( ): traceback()

2003-10-20 Thread Deepayan Sarkar
= white))) I get _no_ errors, and xyplot(...) creates the appropriate windows metafile. -david paul -Original Message- From: Deepayan Sarkar [mailto:[EMAIL PROTECTED] Sent: Sunday, October 19, 2003 12:48 PM To: Paul, David A; '[EMAIL PROTECTED]'; 'Deepayan Sarkar' Subject: Re

Re: [R] problem with win.metafile( ): traceback()

2003-10-19 Thread Deepayan Sarkar
On Sunday 19 October 2003 11:49, Paul, David A wrote: For the first error message: win.metafile(file = //.../plot1.wmf, + width = 8.5, height = 6.25) Could you check what the value of the .Device variable (and .Devices as well) is at this point ? And not that it should matter, but what

Re: [R] lattice error

2003-10-19 Thread Deepayan Sarkar
On Sunday 19 October 2003 16:31, Martin Wegmann wrote: Hello, I tried to open lattice, but I get the following error: library(lattice) Error in loadNamespace(i, c(lib.loc, .libPaths()), keep.source) : package `grid' does not have a name space Error in library(lattice) :

Re: [R] Oceanographic lattice plots?

2003-10-18 Thread Deepayan Sarkar
On Saturday 18 October 2003 13:14, Mike Prager wrote: R 1.8.0 on Windows XP Professional. A huge THANK YOU to the R Team for this marvelous software. I am making lattice plots of oceanographic data. The usual layout does not conform to plotting conventions that marine scientists use when

Re: [R] help with legend()

2003-10-17 Thread Deepayan Sarkar
On Friday 17 October 2003 02:20, Martin Maechler wrote: PaulSch == Schwarz, Paul [EMAIL PROTECTED] on Wed, 15 Oct 2003 12:09:11 -0700 writes: PaulSch I am converting some S-PLUS scripts that I use for PaulSch creating manuscript figures to R so that I can take PaulSch

Re: [R] R memory and CPU requirements

2003-10-17 Thread Deepayan Sarkar
On Friday 17 October 2003 03:33, Alexander Sirotkin \[at Yahoo\] wrote: One more (hopefully last one) : I've been very surprised when I tried to fit a model (using aov()) for a sample of size 200 and 10 variables and their interactions. That doesn't really say

Re: [R] tick marks and barchart

2003-10-17 Thread Deepayan Sarkar
On Thursday 16 October 2003 10:03, Stefán Hrafn Jónsson wrote: Dear R community. I have two problems with figures. First deals with short vector on the x-axis and the second with two-panel barchart. 1) For demonstration I create the following pseudo data for three years, 2001:2003. The

Re: [R] lattice/levelplot: panels with values can be empty

2003-10-09 Thread Deepayan Sarkar
On Thursday 09 October 2003 05:40, Wolfram Fischer wrote: I tried: library(lattice) F0 - c( 'A', 'A', 'B', 'B' ) F1 - c( 1 , 1 , 1 , 2 ) F2 - c( 8 , 9 , 8 , 9 ) VAL - c( 20, 50, 10, 60 ) df - data.frame( F0, F1, F2, VAL )

Re: [R] auto.key = TRUE in xyplot() draws max. 7 groups

2003-10-06 Thread Deepayan Sarkar
On Monday 06 October 2003 03:19, Edzer J. Pebesma wrote: In the example below: library(lattice) n = 100 a = rnorm(n) b = rnorm(n) c = sample(c(1:7), n, repl=TRUE) xyplot(a ~ b, groups = c, auto.key = TRUE) c = sample(c(1:8), n, repl=TRUE) xyplot(a ~ b, groups = c, auto.key = TRUE) a

Re: [R] Query: What is 'Trellis'?

2003-10-02 Thread Deepayan Sarkar
See http://cm.bell-labs.com/cm/ms/departments/sia/project/trellis/ This is implemented in the lattice package in R, which you can load by library(lattice) and perhaps start with help(Lattice) On Thursday 02 October 2003 05:50, Mrten Bjellerup wrote: I'm an R-beginner and have found the

Re: [R] Date on x-axis of xyplot

2003-09-18 Thread Deepayan Sarkar
On Wednesday 17 September 2003 08:51, David James wrote: Prof Brian Ripley wrote: On Tue, 16 Sep 2003, Deepayan Sarkar wrote: Is the date class standard enough to warrant including a check for it in lattice ? I don't think so. The POSIX*t classes in R are the most standard

Re: [R] lattice boxplot graphical parameters

2003-09-18 Thread Deepayan Sarkar
On Thursday 18 September 2003 10:31 am, Anne Piotet wrote: Hello! I'm trying my hand at lattice representations; I would like to represent a continuous varaiable as function of 2 factors and therefore use the following: bwplot(x ~f1| f2) which works fine except that it plots black points at

Re: [R] Quiz {was Quit asking me ..}

2003-09-17 Thread Deepayan Sarkar
On Wednesday 17 September 2003 01:36, Martin Maechler wrote: How can you write (quite short!) R code such that typing Q -- without any () -- will quit R (without asking about saving). [But you shouldn't really keep that code active in your standard R session because it would be

Re: [R] Suming logical vectors

2003-09-17 Thread Deepayan Sarkar
Your IATmedian has some NAs (which are removed by sort) ? On Thu, 18 Sep 2003, Murray Jorgensen wrote: Can anyone explain the following? [R 1.6.0 Windows XP, yes I will upgrade soon.] Murray sort(IATmedian)[0:50]==0 [1] TRUE TRUE FALSE FALSE FALSE FALSE FALSE FALSE FALSE FALSE

Re: [R] Date on x-axis of xyplot

2003-09-17 Thread Deepayan Sarkar
[Due to problems with my mail client, this message may eventually reach the list twice. Sorry about that.] On Wednesday 17 September 2003 08:51, David James wrote: Prof Brian Ripley wrote: On Tue, 16 Sep 2003, Deepayan Sarkar wrote: Is the date class standard enough to warrant including

Re: [R] Quit asking me if I want to save the workspace!

2003-09-16 Thread Deepayan Sarkar
On Tuesday 16 September 2003 21:26, Murray Jorgensen wrote: Rafael A. Irizarry wrote: you can type this: q(no) see the help file for q Still more work than two mouse clicks. Start R with --no-save (not sure how/whether this will work on Windows).

Re: [R] Date on x-axis of xyplot

2003-09-16 Thread Deepayan Sarkar
On Tuesday 16 September 2003 22:00, Charles H. Franklin wrote: xyplot doesn't seem to want to label my x-axis with dates but instead puts the day-number for each date. begdate is the number of days since January 1, 1960 and was initially created by library(date) ...

<    3   4   5   6   7   8   9   >