Re: [R] plotting two surfaces simultaneously in a single panel

2009-12-02 Thread Deepayan Sarkar
On Fri, Nov 27, 2009 at 6:14 PM, Umesh Srinivasan umesh.sriniva...@gmail.com wrote: Hi, I have recently begun using the lattice package, and have been using the wireframe command to visualise matrices which are model outputs. I have been trying to plot two surfaces (from two matrices)

Re: [R] lattice --- different properties of lines corresponding to type=c(l, a) respectively

2009-11-27 Thread Deepayan Sarkar
On Fri, Nov 27, 2009 at 1:13 AM, Kjetil Halvorsen kjetilbrinchmannhalvor...@gmail.com wrote: I think the subject says it all. I want to make a simple lattice plot, using xyplot with the argument     type=c(l,a). The problem then is that in the resulting plot it is difficult/impossible to see

Re: [R] order of panels in xyplots

2009-11-27 Thread Deepayan Sarkar
On Thu, Nov 26, 2009 at 12:09 AM, Titus Malsburg malsb...@gmail.com wrote: The documentation of xyplot could be improved here.  It says:  If 'index.cond' is a list, it has to be as long as the number of conditioning   variables, and the 'i'-th component has to be a valid indexing vector for

Re: [R] Adding text in the panels for Trellis plot ...

2009-11-27 Thread Deepayan Sarkar
On Thu, Nov 26, 2009 at 6:22 AM, ychu066 ychu...@aucklanduni.ac.nz wrote: i was trying to do a for loop for plotting the histograms , but it doesnt work properly library(lattice) columns - 8:153 plots - vector(list, length(columns)) j - 0 for (i in columns) + { +   plots[[ j - j+1 ]] -

Re: [R] barchart() {Lattice} help.

2009-11-27 Thread Deepayan Sarkar
On Fri, Nov 27, 2009 at 9:21 AM, Peng Cai pengcaimaill...@gmail.com wrote: @ Peter: I got it, thanks a lot for all your help! And yes, as you said the title option in auto.key is redundant. @ All, Hi: I need to add percentage sign to y-axis labels (like 0%, 20%, ..., 100%). How can I get it.

Re: [R] Cannot set wireframe ticks?

2009-11-24 Thread Deepayan Sarkar
On Tue, Nov 24, 2009 at 10:02 AM, Fredrik Johansson fredj...@gmail.com wrote: I have an issue when making a wireframe plot. I can't find any way to change the number of ticks on the labels. I try to set it in the code below with z.ticks=1, but that doesn't work. Is there anything that works?

Re: [R] how to specify the order of panels with xyplot

2009-11-20 Thread Deepayan Sarkar
On Fri, Nov 20, 2009 at 12:53 PM, Dan Kortschak dan.kortsc...@adelaide.edu.au wrote: I have sorted out how to do this - by much trial an error (a comment from Deepayan in a post some years ago pointed which way to go, though it took a lot of searching to find even where to start with it: I've

Re: [R] Hmisc and Lattice question on gridlines

2009-11-20 Thread Deepayan Sarkar
On Fri, Nov 20, 2009 at 7:47 AM, Joe King j...@joepking.com wrote: I have been using lattice xyplot and am quite pleased, and I can use the type=c(b,g) to have it print gridlines into the page, yet if I want to have a line plot with points on it, how do I get the xYplot to print gridlines (I

Re: [R] PLoS, Arial, R linux

2009-11-19 Thread Deepayan Sarkar
On Thu, Nov 19, 2009 at 4:30 PM, Ted Harding ted.hard...@manchester.ac.uk wrote: Greetings All. According to the PLoS (Public Library of Science) Guidelines for Figure preparation, if a figure is submitted as EPS rather than TIFF then Figure text must be in Arial font -- see: [1]

Re: [R] Lattice plot

2009-11-18 Thread Deepayan Sarkar
On Wed, Nov 18, 2009 at 4:14 AM, Tim Smith tim_smith_...@yahoo.com wrote: Hi, I was trying to get a graph in lattice with the following data frame (7 rows, 5 cols): chr start1 end1 meth positive 1   1     10   20  1.5        y 2   2     12   18 -0.7        n 3   3     22   34  2.0        

Re: [R] lattice barchart

2009-11-18 Thread Deepayan Sarkar
On Tue, Nov 17, 2009 at 3:31 PM, Wilberforce will.pa...@matrixknowledge.com wrote: I have a data frame with two factors and want to create panel barcharts with one factor defining the panels and the other the vertical categories by which I can count the rows of data in each combination of

Re: [R] specifying group plots using panel.groups

2009-11-18 Thread Deepayan Sarkar
On Mon, Nov 16, 2009 at 9:47 PM, wintere ericawint...@gmail.com wrote: Hi, I am trying to plot two types of data on the same graph: points and distributions. I am attempting to use the panel.groups function, but cannot seem to get it to work. I have a melted data set and put in a FLAG column

Re: [R] How do I change the colour and format for the trelli plot ?

2009-11-18 Thread Deepayan Sarkar
On Thu, Nov 19, 2009 at 6:03 AM, ychu066 ychu...@aucklanduni.ac.nz wrote: http://old.nabble.com/file/p26418382/hist1.png hist1.png  i want three plots along on the side , how to i do that ?  and I also want to change the colour of the bars for each plot, how do i do that ? i got the code

Re: [R] Licensing data sets

2009-11-13 Thread Deepayan Sarkar
On Fri, Nov 13, 2009 at 8:05 PM, Christian Lederer christianlede...@t-online.de wrote: Hi, i am working on a biosignal package which has a data set package as dependency (e.g. for the examples). This data set package will include patient data. Of course, the patients will be asked for their

Re: [R] How to properly shade the background panels of an xyplot?

2009-11-01 Thread Deepayan Sarkar
On Fri, Oct 30, 2009 at 8:33 PM, Ottorino-Luca Pantani ottorino-luca.pant...@unifi.it wrote: Dear R users, this is a follow up of this message http://tolstoy.newcastle.edu.au/R/e6/help/09/05/13897.html I'm reproducing the core of it for convenience. // / data(Oats, package = MEMSS) / /

Re: [R] FW: making a plot in xyplot

2009-10-30 Thread Deepayan Sarkar
On Mon, Oct 26, 2009 at 12:19 PM, Ordaz, Sarah ord...@upmc.edu wrote: Hi, I'd like to clarify my previous posting.  See below - my updates are noted with *s Thanks, Sarah Ordaz ord...@upmc.edu Hello, I am a newbie to the lattice package in R, and I'm trying to make a plot using the

Re: [R] PDF too large, PNG bad quality

2009-10-30 Thread Deepayan Sarkar
On Fri, Oct 23, 2009 at 1:54 AM, Jim Lemon j...@bitwrit.com.au wrote: On 10/23/2009 06:07 AM, Lasse Kliemann wrote: I wish to save a scatter plot comprising approx. 2 million points in order to include it in a LaTeX document. Using 'pdf(...)' produces a file of size about 20 MB, which is

Re: [R] Print several xyplots to the same page in a pdf file

2009-10-30 Thread Deepayan Sarkar
2009/10/27 Joel Fürstenberg-Hägg joel_furstenberg_h...@hotmail.com: Hello everybody, I'm using the lattice package and the xyplot to make several graphs like below. However, I can just print the three grouped plots onto one page as I'm putting them into a pdf-file, which gives me a huge

Re: [R] insert a text in panels, always in the same position (lattice, ltext, ?prepanel?)

2009-10-30 Thread Deepayan Sarkar
On Fri, Oct 30, 2009 at 2:10 AM, Ottorino-Luca Pantani ottorino-luca.pant...@unifi.it wrote: Dear R-users, my present problem is related to lattice. I would like to put some text in each panel, namely a p-value. I therefore wrote a simple panel function as reported here below. I'm able to

Re: [R] Exclude rows in xyplot

2009-10-29 Thread Deepayan Sarkar
On Tue, Oct 27, 2009 at 12:07 PM, Dieter Menne dieter.me...@menne-biomed.de wrote: Joel Fürstenberg-Hägg wrote: Now I'm trying to make xyplots to compare the result from three different categories: # Plot Pro against Glc for each of the three categories xyplot(Pro ~ Glc |

Re: [R] xyplot does not find variable in data

2009-10-12 Thread Deepayan Sarkar
On Mon, Oct 12, 2009 at 9:32 AM, Jacob Wegelin jacob.wege...@gmail.com wrote: When we call a lattice function such as xyplot, to what extent does the data designation cause the function to look inside the data for variables? In the examples below, the subset argument understands that Variety

Re: [R] xyplot#strips like ggplot?

2009-10-10 Thread Deepayan Sarkar
On Thu, Oct 8, 2009 at 6:54 AM, baptiste auguie baptiste.aug...@googlemail.com wrote: Hi, Try the useOuterStrips function in the latticeExtra package. ...which is discussed in section 11.5 of the Lattice book. -Deepayan HTH, baptiste 2009/10/8 Christian Ritter crit...@ridaco.be: Dear

Re: [R] lattice: passing multiple lty values to the key/legend

2009-10-10 Thread Deepayan Sarkar
On Thu, Oct 8, 2009 at 10:52 AM, Folkes, Michael michael.fol...@dfo-mpo.gc.ca wrote: hi all, It's not clear to me how (or if) I can pass multiple values for lty to a key in xyplot? I've tried:  lines=list(lty=1:3), to no avail. Do I need to use something other than auto.key? (Deepayan, if

Re: [R] subsetting key on qqmath

2009-10-10 Thread Deepayan Sarkar
On Thu, Oct 8, 2009 at 8:11 PM, John Field johnfi...@ozemail.com.au wrote: Dear R list, The code below puts qq-plots for two of three groups on the one plot.  However the legend includes all three groups, ie the auto.key ignores the subset instruction.  Is there an easy way to get around

Re: [R] auto.key legend color different from actual plot

2009-10-10 Thread Deepayan Sarkar
On Sat, Oct 10, 2009 at 12:13 AM, Rene kaixinma...@gmail.com wrote: Dear All, I have created a barchart, but the legend created by auto.key does not match the actual graph. Can someone give me some hint here? For example, my coding are: Library(lattice) dataset.table -

Re: [R] lattice auto.key drop unused levels

2009-10-10 Thread Deepayan Sarkar
On Sat, Oct 10, 2009 at 5:51 PM, Peter Ehlers ehl...@ucalgary.ca wrote: The key will show the levels of the 'groups' factor. So you will have to ensure that the factor fed to groups has the levels that you want displayed. ?xyplot explicitly states that drop.unused.levels will NOT do that for

Re: [R] Plotting 1 covariate, 3 factors

2009-10-08 Thread Deepayan Sarkar
On Thu, Oct 8, 2009 at 1:57 AM, Paul Chatfield p.s.chatfi...@rdg.ac.uk wrote: Cheers guys that's helpful.  Doug, you're right, my code for ff should have been for (i in 1:length(y)) {if (f1[i]==after f3[i]==1) ff[i]-1, after else if(f1[i]==after f3[i]==2) ff[i]-2, after else

Re: [R] Problem using with panel.average in Lattice package

2009-10-07 Thread Deepayan Sarkar
in panel.average/linejoin. -Deepayan Regards, Peter Ehlers Deepayan Sarkar wrote: On Fri, Oct 2, 2009 at 8:03 PM, Mark Dalphin mark.dalp...@peblnz.com wrote: Hi, I'm having a problem getting the panel.average function to work as I expect it to in a lattice plot. I wish to draw lines between

Re: [R] Access to conditioning variables (lattice)

2009-10-04 Thread Deepayan Sarkar
On Thu, Sep 24, 2009 at 2:14 PM, Martin Lepage martin.d.lep...@gmail.com wrote: The problem I am facing is that I do not know how to generically access the conditioning variables within the panel function. In this simple case, I can achieve what I want to do with the following call :    

Re: [R] Levelplot without margins

2009-10-04 Thread Deepayan Sarkar
On Mon, Sep 28, 2009 at 9:08 AM, Antje antje.niederl...@yahoo.de wrote: I had a bit success with the following usage: my.padding - list(layout.heights = list(                        top.padding = 0,                        main.key.padding = 0,                        key.axis.padding = 0,    

Re: [R] xyplot key

2009-10-04 Thread Deepayan Sarkar
On Wed, Sep 30, 2009 at 6:54 AM, Andrewjohnclose a.j.cl...@ncl.ac.uk wrote: Hi, I'm having trouble matching the symbols/color of the key to match those specifiec in the plot. Here is the code I used: xyplot(GCR+GCT ~ FRAC, data=RWF, type=c(g,p),cex=1.2,pch=c(22,21),

Re: [R] Help for 3D Plotting Data on 'Irregular' Grid

2009-10-04 Thread Deepayan Sarkar
On Thu, Oct 1, 2009 at 6:38 AM, Lorenzo Isella lorenzo.ise...@gmail.com wrote: Dear All, Here is what I am trying to achieve: I would like to plot some data in 3D. Usually, one has a matrix of the kind y_1(x_1) , y_1(x_2).y_1(x_i) y_2(x_1) , y_2(x_2).y_2(x_i)

Re: [R] changing number of axis

2009-10-04 Thread Deepayan Sarkar
might leave it, unless there is a simple way around this. Including absent points as NA-s will work to break the lines; not sure if that would be hard to do in your example. -Deepayan cheers Dan On Tue, 2009-09-29 at 23:17 -0700, Deepayan Sarkar wrote: On Tue, Sep 29, 2009 at 11:09 PM

Re: [R] Problem using with panel.average in Lattice package

2009-10-04 Thread Deepayan Sarkar
On Fri, Oct 2, 2009 at 8:03 PM, Mark Dalphin mark.dalp...@peblnz.com wrote: Hi, I'm having a problem getting the panel.average function to work as I expect it to in a lattice plot. I wish to draw lines between the averages of groups of y-values at specific x-values. I have created a dataset

Re: [R] update'ing trellis object

2009-10-04 Thread Deepayan Sarkar
On Sat, Oct 3, 2009 at 7:35 PM, David Winsemius dwinsem...@comcast.net wrote: On Oct 3, 2009, at 7:05 PM, Sebastian P. Luque wrote: Hi, I thought the following would only remove the legend element of a trellis object, but it actually removes both the legend and key elements:

Re: [R] changing number of axis

2009-09-30 Thread Deepayan Sarkar
On Wed, Sep 16, 2009 at 2:02 PM, Dan Kortschak dan.kortsc...@adelaide.edu.au wrote: Hi, I trying to produce a bar chart describing hits to specific bins by chromosome for a large data set (I am asking here because experimentation with options is precluded due to this - generating the figure

Re: [R] lattice: How to display no box but only a y-axis on the left + Thicker lines

2009-09-30 Thread Deepayan Sarkar
On Fri, Sep 18, 2009 at 6:06 AM, baptiste auguie baptiste.aug...@googlemail.com wrote: No box is easy, bwplot(y~x, data=data.frame(y=rnorm(10),x=sample(letters[1:3],10,repl=T)), par.settings=list(axis.line=list(col=NA))) but that seems to remove all axis lines and ticks as well. You may

Re: [R] changing number of axis

2009-09-30 Thread Deepayan Sarkar
from y=0 to y=binvalue for each represented bin seem most sensible, but I'm not sure how to go about this. thanks Dan On Tue, 2009-09-29 at 22:59 -0700, Deepayan Sarkar wrote: On Wed, Sep 16, 2009 at 2:02 PM, Dan Kortschak dan.kortsc...@adelaide.edu.au wrote: Hi, I trying to produce a bar

Re: [R] reducing space between charts in lattice graphics

2009-09-30 Thread Deepayan Sarkar
On Sat, Sep 19, 2009 at 9:42 AM, Larry White ljw1...@gmail.com wrote: Hi, I'm trying to create a lattice plot with three xyplots in one vertical column. I would like to reduce the vertical space between the charts.  My code is below. There seems to be a between parameter for lattice.options,

Re: [R] Lattice: combine the same strip?

2009-09-30 Thread Deepayan Sarkar
On Sat, Sep 19, 2009 at 3:36 PM, di jianing jianin...@gmail.com wrote: Hello R helpers, I am producing a figure with dual strips, i.e., x~y | S1 + S2, where S1 and S2 are two strips. For example, in figure 2.1 at http://lmdvr.r-forge.r-project.org/figures/figures.html. In this case, I would

Re: [R] Evaluating expresssions as parameter values

2009-09-30 Thread Deepayan Sarkar
On Tue, Sep 22, 2009 at 12:03 PM, Erich Neuwirth erich.neuwi...@univie.ac.at wrote: I need to play games with an expression similar to the following one: print(xyplot(DepVar ~ Group|Covar, groups=Othergroup,        data=mydf, pch = 18 ,main=Testcase,auto.key = TRUE)) The problem is that  

Re: [R] symbols(x,y, circles=sqrt(N)) with lattice xyplot

2009-09-14 Thread Deepayan Sarkar
On Mon, Sep 14, 2009 at 3:55 PM, Jacob Wegelin jacob.wege...@gmail.com wrote: How would I create the following plot using lattice? symbols( combPsummary$pastRate, combPsummary$finRate, circles=sqrt(combPsummary$N) ) The idea is to plot finRate vs pastRate using circles whose areas are

Re: [R] Xyplot, multi line title via main, all lines left justified

2009-09-10 Thread Deepayan Sarkar
On Wed, Sep 9, 2009 at 2:53 PM, Afshartous, David dafshart...@med.miami.edu wrote: All, Below is an xyplot plot with multiple panels and a title produced via main: library(lattic) data.ex = data.frame(y = rnorm(10), t = rep(1:5, 2), group = rep(c(0,1), each = 5)) xyplot(y ~ t |

Re: [R] Matrix as input to xyplot {lattice} - proper extended formula syntax

2009-09-06 Thread Deepayan Sarkar
On Sat, Sep 5, 2009 at 10:43 PM, Bryan Hansonhan...@depauw.edu wrote: Thanks David, your way of constructing df is much more compact than what I was using, so I've incorporated it.  I also had my rows and columns transposed relative to how xyplot wanted them (though I had tested for that,

Re: [R] Creating mixed line and point graphs with xyplot

2009-09-04 Thread Deepayan Sarkar
On Fri, Sep 4, 2009 at 8:28 AM, Paul Sweetingm...@paulsweeting.co.uk wrote: Hi Well, I think the title says it all!  I've looked through the documentation but I can't find a way of doing this.  The situation is that I have 4 series, say a, b, c and d.  Series a and c are plotted on the lh y

Re: [R] Google's R Style Guide

2009-08-28 Thread Deepayan Sarkar
On Fri, Aug 28, 2009 at 10:02 AM, Kevin Wrightkw.s...@gmail.com wrote: On Fri, Aug 28, 2009 at 11:49 AM, Duncan Murdoch murd...@stats.uwo.cawrote: On 8/28/2009 12:33 PM, Kevin Wright wrote: [...] Now that doesn't sound like the browser.  Whatever debugger you are using has a bug. Duncan

Re: [R] Surpress one panel in lattice plot..?

2009-08-25 Thread Deepayan Sarkar
On Sun, Aug 23, 2009 at 5:41 PM, Ben Bolkerbol...@ufl.edu wrote: Fredrik Karlsson wrote: Dear list, I have a two character vector with two different values in them (two each, that is). Naturally, when I use these vectors as grouping factors in a lattice plot, I get four panels. Now, one

Re: [R] adding points to a wireframe

2009-08-25 Thread Deepayan Sarkar
On Mon, Aug 24, 2009 at 4:27 PM, jebyrnesbyr...@msi.ucsb.edu wrote: Hrm.  I have to admit, I don't entirely understand how to use the scaling, and that seems like a lot of unneeded extra code.  It is what it is, though. That's true, and I think it would be easy enough to have a flag to

Re: [R] allowing line wrap for long strip text in xyplot (lattice)

2009-08-25 Thread Deepayan Sarkar
On Mon, Aug 24, 2009 at 8:04 PM, Donald Boydbo...@hughes.net wrote: Hi. Am brand new to R and to mailing lists - have never posted anywhere before, so hope I do this right. Am using R 2.9.1 with lattice graphics (just installed, fully up to date). Am doing trellis xyplot with y

Re: [R] table, xyplot, names, loops

2009-08-25 Thread Deepayan Sarkar
On Tue, Aug 25, 2009 at 10:16 AM, w_poetstephen...@ucla.edu wrote: Hi R community, I'm just starting out in R and have a basic question about xyplot and tables. Suppose I had a table of data with the following names: Height, Age_group, City. I'd like to plot mean Height vs Age_group for each

Re: [R] adding points to a wireframe

2009-08-22 Thread Deepayan Sarkar
On 8/18/09, Jarrett Byrnes byr...@msi.ucsb.edu wrote: A quick question. I'm trying to plot a surface from a fitted model along with the original points, as in the following example: df-data.frame(expand.grid(100*runif(1:100), 100*runif(1:100))) df$Var3-rnorm(length(df$Var1),

Re: [R] Lattice: How to do error bars

2009-08-22 Thread Deepayan Sarkar
On 8/11/09, Alex van der Spek am...@xs4all.nl wrote: I am trying to add 2 stdev error bars to lattice type plots: panel.ebar-function(x,y,dy=NULL,...) { panel.xyplot(x,y,...) panel.segments(x,y-dy,x,y+dy,...) } Then: xyplot(y~x|fc,data=dat,dy=dat$dy,panel=panel.ebar)

Re: [R] Retrieving x argument name from a trellis object

2009-08-14 Thread Deepayan Sarkar
--- Deepayan Sarkar deepayan.sar...@gmail.com 12-Nov-2008 07:04 To vincenzo.2.di-io...@gsk.com vincenzo.2.di-io...@gsk.com cc R help r-h...@stat.math.ethz.ch Subject Re: [R] Retrieving x argument name from a trellis object in R 2.8.0 On 11/11/08

Re: [R] How to plot 3-D surface graph from lmer mixed models?

2009-08-13 Thread Deepayan Sarkar
On Thu, Aug 13, 2009 at 6:34 AM, willow1980jianghua@shef.ac.uk wrote: Dear Professor Murdoch, That is exactly the difficulty for me. I don't know how to make a prediction with lmer using expand.grid; at the moment, I can use “mo...@x%*%fixef(model)” to get predicted values for existing

Re: [R] SOLVED: Lattice: How to do error bars

2009-08-13 Thread Deepayan Sarkar
On Wed, Aug 12, 2009 at 7:19 AM, am...@xs4all.nl wrote: Thank you Gerrit, Your suggestion proved right after all: This does put error bars (dy) on the points. You only need to figure out the proper y axis scaling. xyplot(y~x|f,data=xy,groups=dy,panel=function(x,y,groups,subscripts,...)

Re: [R] xyplot and subscripts

2009-08-13 Thread Deepayan Sarkar
On Thu, Aug 6, 2009 at 7:27 AM, Kito Palaxoukitopala...@yahoo.com wrote: Hi all, I have a data frame like this: DF - data.frame(x = rnorm(10), y = rnorm(10), gr = rep(1:5, 2)) and I make the following xy-plot: library(lattice) xyplot(y ~ x, data = DF, groups = gr, type = b, col = 1)

Re: [R] R help from command line

2009-08-11 Thread Deepayan Sarkar
On Tue, Aug 11, 2009 at 12:43 PM, Peng Yupengyu...@gmail.com wrote: Hi, I frequently need to open multiple help pages in R, which requires the start of multiple R sessions. I am wondering if there is a way to invoke the help page from the command line just like 'man'. If you are feeling

Re: [R] Varying x-axis labels in lattice

2009-08-11 Thread Deepayan Sarkar
On Tue, Aug 11, 2009 at 6:30 AM, Frank E Harrell Jrf.harr...@vanderbilt.edu wrote: Dear Group: I want to use lattice with a formula such as y ~ x | v to plot a data frame in which v varies to indicate which x is really being plotted. I know how to make the x-axis scales vary with the panel

Re: [R] lattice: simultaneously control aspect outer whitespace

2009-08-09 Thread Deepayan Sarkar
On 8/7/09, Jacob Wegelin jacob.wege...@gmail.com wrote: Suppose we wish to achieve the following three aims: (1) Control the aspect ratio of our plot (i.e., tweak this till it looks great) (2) Save the plot as a PDF with zero or minimal white space outside it. (3) Preserve this in code,

Re: [R] multiple lty on same panel in xyplot

2009-08-09 Thread Deepayan Sarkar
On 8/7/09, Duncan Mackay mac...@northnet.com.au wrote: Hi RUsers I like to keep the plots self contained and avoid changing the current device parameters by using the par.settings. To see what I could achieve by using par settings I tried the following and several variants but could not

Re: [R] Completion for custom $ operator?

2009-08-07 Thread Deepayan Sarkar
On 8/7/09, Romain Francois romain.franc...@dbmail.com wrote: On 08/04/2009 10:02 PM, Deepayan Sarkar wrote: On Tue, Aug 4, 2009 at 11:37 AM, Vitalie S.vitosm...@rambler.ru wrote: Dear UseRs, I declared a `$` method for a S4 class. Can I have ab automatic completion

Re: [R] lattice dotplot: line height for multi-line labels

2009-08-07 Thread Deepayan Sarkar
On 8/7/09, boris.vasil...@forces.gc.ca boris.vasil...@forces.gc.ca wrote: Dear R-users, I am looking for suggestions on how to control the line-height for multi-line labels in lattice dotplot. In particular, in the dotplot produced by library(lattice) aa - c('A'=10,'B\nb'=20,'C'=30)

Re: [R] Is there a 'vi' mode in R?

2009-08-07 Thread Deepayan Sarkar
On 8/6/09, Peng Yu pengyu...@gmail.com wrote: Hi, I'm wondering if R provide a vi mode in the command line just like other shells such as bash do. Can somebody let me know? I've never used vi-mode, but vi mode in bash (at least) is provided by the readline library, and R uses the same

Re: [R] Completion for custom $ operator?

2009-08-06 Thread Deepayan Sarkar
On Thu, Aug 6, 2009 at 10:45 AM, Vitalie S.vitosm...@rambler.ru wrote: Completion should be automatic if you define names() to return the valid names. Thank you Deepayan, that works beautifully. I wonder though; names function for environment objects always returns NULL, but completion

Re: [R] Transparency and trellis device

2009-08-05 Thread Deepayan Sarkar
On 8/5/09, pomc...@free.fr pomc...@free.fr wrote: Just replying to bring back some attention on my post, which might have slept through on Saturday. Thank you for your help. - Mail Original - De: pomc...@free.fr À: r-h...@stat.math.ethz.ch Envoyé: Samedi 1 Août 2009 15h48:24

Re: [R] Transparency and trellis device

2009-08-05 Thread Deepayan Sarkar
On 8/5/09, pomc...@free.fr pomc...@free.fr wrote: Hi Deepayan, Thank for you reply. I am a little bit confused now. In the one hand, the trellis.device function has lost his bg argument as explained in the Note section of ?trellis.device, but the background info provided by a theme does

Re: [R] multiple lty on same panel in xyplot

2009-08-05 Thread Deepayan Sarkar
On 8/5/09, Jacob Wegelin jacob.wege...@gmail.com wrote: I would like to use lattice graphics to plot multiple functions (or groups or subpopulations) on the same plot region, using different line types lty or colors col to distinguish the functions (or groups). In traditional graphics,

Re: [R] multiple lty on same panel in xyplot

2009-08-05 Thread Deepayan Sarkar
On Wed, Aug 5, 2009 at 2:24 PM, Jacob Wegelinjacob.wege...@gmail.com wrote: On Wed, 5 Aug 2009, Deepayan Sarkar wrote: On 8/5/09, Jacob Wegelin jacob.wege...@gmail.com wrote: I would like to use lattice graphics to plot multiple functions (or groups  or subpopulations) on the same plot

Re: [R] specify lattice black-and-white theme

2009-08-05 Thread Deepayan Sarkar
On Wed, Aug 5, 2009 at 6:27 PM, Jacob Wegelinjacob.wege...@gmail.com wrote: Is there a simple way to specify a theme or trellis (lattice) parameters so that, in a multipanel (conditioned) plot, there is no color and in the strips there is no shading? This is the effect achieved on page 124 of

Re: [R] Completion for custom $ operator?

2009-08-04 Thread Deepayan Sarkar
On Tue, Aug 4, 2009 at 11:37 AM, Vitalie S.vitosm...@rambler.ru wrote: Dear UseRs, I declared a `$` method for a S4 class. Can I have ab automatic completion for this operator in R? Lists and environment objects provide this feature by default, but my object is an extension of function class

Re: [R] Lattice xyplot: same scales within one factor

2009-08-03 Thread Deepayan Sarkar
On Mon, Jul 13, 2009 at 8:33 AM, OBo.borderl...@gmail.com wrote: I am using R 2.8.1 and lattice to produce xyplots conditioned on two factors. What I would like is to have the scales be free between values of one factor, but some within. Thus, in this example, xyplot(mpg ~ disp | factor(gear)

Re: [R] dot plot with several points for 2 categories

2009-08-03 Thread Deepayan Sarkar
On Wed, Jul 29, 2009 at 9:11 AM, jaregisuck...@mpi-cbg.de wrote: Hi Michael, Steve, and 1Rnwb, I'm very impressed by the quick replies on the mailer. Thanks a lot for your suggestions. They worked very well. In general, I have to say that I'm a bit disappointed that in R, like in Excel,

Re: [R] lattice shingle plot axis annotation

2009-08-03 Thread Deepayan Sarkar
On Thu, Jul 30, 2009 at 12:43 AM, Armin Goralczykagoralc...@gmail.com wrote: Hello (R-)Experts I hope someone can help with this problem concerning axis annotation of a lattice shingle plot. I want a plot with three shingles to display some laboratory value over time. In the first panel over

Re: [R] Defining different objects within a loop

2009-08-03 Thread Deepayan Sarkar
On Thu, Jul 30, 2009 at 3:09 PM, jimdarejamesdar...@gmail.com wrote: Dear R Users, I have a dataset that I have split by group.  For each group I plot a figure using: for (i in splitdf){ plot-xyplot() print(plot) savePlot(filename=paste(i$Group[1]),type=pdf) } This

Re: [R] wireframe color

2009-08-03 Thread Deepayan Sarkar
On Mon, Aug 3, 2009 at 9:36 AM, Marlin Keith Coxmarlink...@gmail.com wrote: Hello, hopefully simple question, but I cannot find the answer.  I need to change the color from the standard default.  Still want the scaled colors, but need different colors for different graphs. Code is:

Re: [R] xyplot: superpose 2 time series with different time intervals

2009-08-01 Thread Deepayan Sarkar
On Sat, Aug 1, 2009 at 7:26 AM, Gary Lewisgary.m.le...@gmail.com wrote: I could use some advice regarding xyplot. I've got 2 time series. Both cover approximately the same period of time (ie, 1940 to 2009). But one series has annual data and the other has monthly data. One refers to

Re: [R] xyplot, panel.abline, from, to

2009-07-28 Thread Deepayan Sarkar
On Tue, Jul 28, 2009 at 6:58 AM, Peter Ehlersehl...@ucalgary.ca wrote: David, ?panel.abline does not indicate that 'from/to' are arguments to that function. If you read the help page carefully, you'll see that 'from/to' apply to panel.curve(). Perhaps you thought that the '...' argument can

Re: [R] how to change the quantile method in bwplot

2009-07-21 Thread Deepayan Sarkar
On Tue, Jul 21, 2009 at 7:47 AM, Jun Shenjun.shen...@gmail.com wrote: Uwe, Thank you for your reply.  I am still not very clear about the meanings of the arguments in the stats function.   To make it clearer, quantile() uses type=7 as default method. I believe this is the method bwplot() uses

Re: [R] Two questions about the cloud function in the lattice package

2009-07-03 Thread Deepayan Sarkar
On Fri, Jul 3, 2009 at 10:02 AM, Martin Eklundmartin.ekl...@farmbio.uu.se wrote: Hi, I have two questions regarding the cloud function in the lattice package: 1) Is there a way to not print the surrounding frame (i.e. the square surrounding the entire plot)? There is an example in the

Re: [R] Variable names in lattice XY-plot

2009-07-03 Thread Deepayan Sarkar
On Fri, Jul 3, 2009 at 1:02 PM, baptiste auguiebaptiste.aug...@googlemail.com wrote: ?strip.custom p - xyplot(acet+chol+ino+acetp ~ zp, group=grp, data=data, type=l, scales=list(relation=free), auto.key=list(title= Neurotransmitters, border=TRUE)) update(p,

Re: [R] another xyplot question

2009-07-02 Thread Deepayan Sarkar
On Wed, Jul 1, 2009 at 10:38 PM, jlfmssmjlfm...@gmail.com wrote: I have a data set like this ID=c(A,A,A,A,A,A,A,B,B,B,B,B,B,B) s=c(1.1,2.2,1.3,1.1,3.1,4.1,4.2,1.1,2.2,1.3,1.1,3.1,4.1,4.2) d=c(1,2,3,4,5,6,7,1,2,3,4,5,6,7) t=c(-3,-1,0,1,2,3,4,-3,-2,-1,0,1,2,3)

Re: [R] Getting identify() to work with lattice::cloud()

2009-07-02 Thread Deepayan Sarkar
On Thu, Jul 2, 2009 at 10:11 AM, Robert A. LaBudder...@lcfltd.com wrote: I don't seem to be able to put any syntax into identify() that gets it to work with lattice cloud() graph: layout(1) require('lattice') cloud(g3 ~ g1 + g2, data=gapp, col = blue,  xlab='G1 Score', ylab='G2 Score',  

Re: [R] panel.text and saving to pdf

2009-06-26 Thread Deepayan Sarkar
On Fri, Jun 26, 2009 at 1:53 AM, Dieter Mennedieter.me...@menne-biomed.de wrote: Willem Vervoort w.vervoort at usyd.edu.au writes: I am not sure what I am doing wrong, but I have some unexplained behaviour when saving a lattice graph including text to a pdf file. The text seems to move

Re: [R] distinguish regression lines in grouped, black and white lattice xyplot

2009-06-24 Thread Deepayan Sarkar
On Wed, Jun 24, 2009 at 2:05 PM, Katharina Maymay.kathar...@googlemail.com wrote: That's a point. I justed wanted to provide an overview for myself to see the tendencies in a direct comparement and with an easy way to distinct them, but maybe the text panel can help me with that... Well

Re: [R] Customize axis labels in xyplot

2009-06-23 Thread Deepayan Sarkar
On Mon, Jun 22, 2009 at 1:54 AM, nmsetnm...@netcourrier.com wrote: I have attached 2 files sample.csv and sample.r to illustrate the problem. No attachments came through. -Deepayan __ R-help@r-project.org mailing list

Re: [R] Identify groups by character point in xyplot legend

2009-06-23 Thread Deepayan Sarkar
On Tue, Jun 23, 2009 at 1:38 PM, nmsetnm...@netcourrier.com wrote: http://www.nabble.com/file/p24173983/groups.csv groups.csv http://www.nabble.com/file/p24173983/groups.r groups.r Hello, Points of an xyplot can be identified to a particular group according to 'sunflowers', a different one

Re: [R] Customize axis labels in xyplot

2009-06-21 Thread Deepayan Sarkar
On Sat, Jun 20, 2009 at 9:13 AM, nmsetnm...@netcourrier.com wrote: Hello, I'm plotting an xyplot where a continuous var recorded every min is plotted on y, and time expressed as HH:MM:SS on x, as follows : xaxis=list(tick.number=12,rot=90) lst=list(x=xaxis) xyplot(upt$LOAD_1 ~ upt$TIME,

Re: [R] question about adding plots in a grid (lattice package)

2009-06-19 Thread Deepayan Sarkar
On 6/16/09, Marion Dumas mario...@gmail.com wrote: Hello! I am starting to use the lattice package. I generated an xyplot conditioned on a factor that has three levels: hence I get three plots in three panels spaces and one is left empty. I would like to add a plot to the empty panel space.

Re: [R] lattice logaritmic scale (basis e ), rewriting labels using xscale.component

2009-06-19 Thread Deepayan Sarkar
On 6/18/09, Katharina May may.kathar...@googlemail.com wrote: Hi there, sorry for troubling everybody once again, I've got a problem rewriting Sarkar's function for rewriting the tick locations in a logaritmic way (s. http://lmdvr.r-forge.r-project.org/code/Chapter08.R): His example

Re: [R] lattice: axis ticks, axis alignment and remove axis from plot

2009-06-19 Thread Deepayan Sarkar
On 6/18/09, Katharina May may.kathar...@googlemail.com wrote: Hi Sorn, thanks for your code. I guess I didn't really made myself very clear. What I sort of looking for is a xyplot with both the x axis at the bottom and y axis at the left going through 0, but continuing in the positive

Re: [R] Adding site id to xyplot

2009-06-19 Thread Deepayan Sarkar
On 6/19/09, SEUNG CHEON HONG seungh...@wisc.edu wrote: Dear R Lists, Can anyone help me add site IDs (site: 1~50) directly to my xyplot. I have 50 sites and collected observations from the sites at 13 different time points. I want to look at the change of my observations in each site. I

Re: [R] using lattice dotplot with two equal data points

2009-06-16 Thread Deepayan Sarkar
On Fri, Jun 12, 2009 at 10:54 AM, Chosid, David (FWE)david.cho...@state.ma.us wrote: I'm wondering if I am dealing with a limitation in lattice. It's probably due to my own limitations though. I'm working with a lattice dotplot. The x-axis is set at free. In one panel, there are only two

Re: [R] xyplot format axis

2009-06-16 Thread Deepayan Sarkar
On Tue, Jun 16, 2009 at 7:24 AM, taz9alienz...@gmail.com wrote: Hi All, I'm trying to format the y-axis in an xyplot to show numbers with a comma separating the thousands but I'm not able to do it using formatNum(y, big.mark=,). This is what I have: library(lattice)

[R] Fwd: correct line types in lattice legends

2009-06-06 Thread Deepayan Sarkar
[Forgot to CC r-help] -- Forwarded message -- From: Deepayan Sarkar deepayan.sar...@gmail.com To: Gerrit Draisma g.drai...@erasmusmc.nl On 6/6/09, Gerrit Draisma g.drai...@erasmusmc.nl wrote: Hallo R-users, I do not understand how to specify the correct line and symbol

Re: [R] lattice::xyplot axis padding with fontfamily=mono

2009-05-28 Thread Deepayan Sarkar
On Wed, May 27, 2009 at 4:38 PM, Benjamin Tyner bty...@gmail.com wrote: Hello, Say I have a predictor taking a very wide value:  Data - data.frame(pred=a,resp=1)  print(xyplot(pred~resp, data=Data)) # enough y-axis padding to accommodate the wide

Re: [R] Barchart in lattice - wrong order of groups, data labels on top of each other, and a legend question

2009-05-21 Thread Deepayan Sarkar
On Thu, May 21, 2009 at 12:58 PM, Dimitri Liakhovitski ld7...@gmail.com wrote: Deepayan, thank you very much for your response. I have a general question. And please remember - I am really just a beginner in R. Is it truly the case that in order to build quite a basic bar chart with value

Re: [R] Barchart in lattice - wrong order of groups, data labels on top of each other, and a legend question

2009-05-19 Thread Deepayan Sarkar
On Mon, May 18, 2009 at 11:47 AM, Dimitri Liakhovitski ld7...@gmail.com wrote: Hello! I have a question about my lattice barchart that I am trying to build in Section 3 below. I can't figure out a couple of things: 1. When I look at the dataframe test that I am trying to plot, it looks right

Re: [R] Lattice scales question: using at when log = TRUE

2009-05-16 Thread Deepayan Sarkar
On 5/16/09, Afshartous, David dafshart...@med.miami.edu wrote: Thanks, but even with typo corrected as below the supplied marks are not followed: xyplot(y ~ t, type = b, scales = list(y = list(log = TRUE, at = c(10^1,10^2, 10^2.5, 10^3 How so? Looks OK to me. -Deepayan

Re: [R] assign unique size of point in xyplot

2009-05-15 Thread Deepayan Sarkar
On Thu, May 14, 2009 at 12:14 PM, Garritt Page page2...@gmail.com wrote: Hello,I am using xyplot to try and create a conditional plot.  Below is a toy example of the type of data I am working with slevel - rep(rep(c(0.5,0.9), each=2, times=2), times=2) tlevel - rep(rep(c(0.5,0.9), each=4),

Re: [R] creating a postscript file with two xyplots

2009-05-14 Thread Deepayan Sarkar
On 5/13/09, Liati liat...@hotmail.com wrote: Hi, Thank you for your reply. This is exactly what I have done. However, I would like to get the two plots next to each other (to use as one figure). Look at ?print.trellis and its examples. -Deepayan

<    1   2   3   4   5   6   7   8   >