Re: [R] Lattice: type=p stopped working in panel.average

2010-10-19 Thread Deepayan Sarkar
On Tue, Oct 19, 2010 at 4:18 PM, Alexandr Malusek alexandr.malu...@gmail.com wrote: Hi, The behavior of panel.average has changed.  In March 2010, I plotted the attached r_plotViolinOfAnnualE_old.eps. (I don't know the version of R). Today, I plotted the attached r_plotViolinOfAnnualE_new.eps

Re: [R] lattice: dots from xyplot to xscale.components

2010-10-20 Thread Deepayan Sarkar
On Wed, Oct 13, 2010 at 3:46 AM, Mikhail Titov m...@gmx.us wrote: Hello! I posted a feature request at lattice page on r-forge at https://r-forge.r-project.org/tracker/index.php?func=detailaid=1127group_id=638atid=2570 , but I decided to duplicate it here to make sure that I understand

Re: [R] superpose.polygon, panel.polygon and their colors

2010-10-20 Thread Deepayan Sarkar
On Wed, Oct 20, 2010 at 7:53 AM, ottorino ottorino-luca.pant...@unifi.it wrote: Il giorno mer, 20/10/2010 alle 03.05 -0700, Dennis Murphy ha scritto: Works for me!  Thanks, Dieter! Hi all. Thanks again to you both for the help. It was a problem due to a lack in updating ubuntu. After the

Re: [R] dot plot by group

2010-10-20 Thread Deepayan Sarkar
On Mon, Oct 11, 2010 at 12:55 PM, casperyc caspe...@hotmail.co.uk wrote: And now I just wonder why the ' bty='n' ' won't work? I did dotplot(BATCH~RESPONSE,data=d,subset=Type=='SHORT',bty='n') and tried other bty parameters, none is working As David says, par settings don't work in

Re: [R] removing margin space between columns in lattice plots

2010-10-28 Thread Deepayan Sarkar
On Sat, Oct 23, 2010 at 9:25 AM, Stephen T. obsessiv...@hotmail.com wrote: Hi list, From the xyplot() documentation I'm guessing this may not be possible, but is there a way to specify a scale definition something between relation=free and relation=same such that the scales are fixed across

Re: [R] lattice key subtitle

2010-10-28 Thread Deepayan Sarkar
On Tue, Oct 26, 2010 at 2:49 AM, Alexandru Dumitrescu alexandru.dumitre...@gmail.com wrote: Hello everybody, Is there a way to add a subtitle to a lattice key? None specifically for that purpose, but latticeExtra does have a mergedTrellisLegendGrob() function that may help: mylegend -

Re: [R] Control of axis limits in multiple panel lattice plots

2010-10-28 Thread Deepayan Sarkar
On Wed, Oct 27, 2010 at 6:45 AM, Peter Davenport pwdavenp...@gmail.com wrote: I've found the solution to this in an old post of Deepayan's: lattice.options(axis.padding = list(numeric=0)) Or xyplot(a~b|c,data=test.df, scales = list(axs = i)) -Deepayan Best, Peter On 27 October 2010

Re: [R] Colour filling in panel.bwplot from lattice

2010-11-03 Thread Deepayan Sarkar
On Wed, Nov 3, 2010 at 4:11 AM, Dennis Murphy djmu...@gmail.com wrote: Hi: I don't know why, but it seems that in bwplot(voice.part ~ height, data = singer, main = NOT THE RIGHT ORDER OF COLOURS\n'yellow' 'blue' 'green' 'red' 'pink' 'violet' 'brown' 'gold',

Re: [R] Colour filling in panel.bwplot from lattice

2010-11-03 Thread Deepayan Sarkar
On Wed, Nov 3, 2010 at 4:25 PM, Rainer Hurling rhur...@gwdg.de wrote: Am 03.11.2010 10:23 (UTC+1) schrieb Deepayan Sarkar: On Wed, Nov 3, 2010 at 4:11 AM, Dennis Murphydjmu...@gmail.com  wrote: Hi: I don't know why, but it seems that in bwplot(voice.part ~ height, data = singer, main

Re: [R] Lattice plots for images

2010-11-03 Thread Deepayan Sarkar
On Wed, Nov 3, 2010 at 8:13 AM, Neba Funwi-Gabga fusigabsm...@gmail.com wrote: Hello UseRs, I need help on how to plot several raster images (such as those obtained from a kernel-smoothed intensity function) in a layout such as that obtained from the lattice package. I would like to obtain

Re: [R] Lattice: xyplot group title format

2010-11-09 Thread Deepayan Sarkar
On Tue, Nov 9, 2010 at 2:06 AM, Marcus Drescher dresc...@tum.de wrote: Dear all, if I plot a lattice xyplot like: library(lattice); require(stats); Depth - equal.count(quakes$depth, number=8, overlap=.1) xyplot(lat ~ long | Depth, data = quakes) How can I manipulate the group title

Re: [R] plot vs print ??

2010-11-21 Thread Deepayan Sarkar
2010/11/20 Uwe Ligges lig...@statistik.tu-dortmund.de: On 18.11.2010 11:30, skan wrote: Hello everybody. My question arised from the output of lattice's histogram. But might be extended to any other object that could be printed. I think I've understood your answers,  print calls the plot

Re: [R] Sweave: infelicities with lattice graphics

2010-07-15 Thread Deepayan Sarkar
On Thu, Jul 15, 2010 at 1:51 PM, Michael Friendly frien...@yorku.ca wrote: In a paper I'm writing using Sweave, I make use of lattice graphics, but don't want to explicitly show (or explain) in the article text the print() wrapper I need in code chunks for the graphs to appear. I can solve

Re: [R] Weighted densityplot?

2010-07-16 Thread Deepayan Sarkar
On Thu, Jul 15, 2010 at 5:51 PM, Farley, Robert farl...@metro.net wrote: I'm trying to plot a series of densities using/comparing differing weights. I see the reference to weights and subscripts, but I don't understand how to implement that.  My data are of the form: I, J, Actual, Distance,

Re: [R] Dot Plot with Confidence Limits

2010-07-16 Thread Deepayan Sarkar
On Wed, Jul 14, 2010 at 10:12 AM, Neil123 neil.wh...@plants.ox.ac.uk wrote: Hi, I have the following dataset and I would like to create a dotplot with confidence limits:        CAT1              CAT2          MEAN                 Lower Upper 1         1                     1            

Re: [R] make an model object (e.g. nlme) available in a user defined function (xyplot related)

2010-07-16 Thread Deepayan Sarkar
On Mon, Jul 12, 2010 at 8:16 AM, Jun Shen jun.shen...@gmail.com wrote: Dear Deepayan, Thank you for taking the time to look into this issue. I have a data object called Data, please find it at the end of the message. Then I can run the code below separately in the console. [...]

Re: [R] Lattice Panel Print Order

2010-07-21 Thread Deepayan Sarkar
On Wed, Jul 21, 2010 at 12:13 AM, Mark Ebbert mark.ebb...@hci.utah.edu wrote: Hi, I have done a bit of searching and have not found a good answer for my question. Although I have not difficulty ordering the panels, Lattice prints them from bottom to top and left to right for each page. Is

Re: [R] Hydrology plots in R

2010-07-23 Thread Deepayan Sarkar
On Thu, Jul 22, 2010 at 7:56 AM, Sam Albers tonightstheni...@gmail.com wrote: Hello, I am trying to create a plot often seen in hydrodynamic work than includes a contour plot representing the water speed with arrows pointing in the direction of flow. Does anyone have any idea how I might add

Re: [R] re-ordering bwplot

2010-07-23 Thread Deepayan Sarkar
On Fri, Jul 23, 2010 at 10:02 AM, Eck, Bradley J brad@mail.utexas.edu wrote: Dear list: I'm using bwplot to compare concentrations by location and treatment as in: # using built in data bwplot( conc ~ Type : Treatment, data = CO2 ) I would like the order of the plots to be: 3,4,1,2.  

Re: [R] hatching posibility in Panel.Polygon

2010-07-25 Thread Deepayan Sarkar
On Sun, Jul 25, 2010 at 7:40 PM, HC hca...@yahoo.co.in wrote: Hatching with lines can be done in polygon function using density and angle arguments. Is similar possibility of hatching polygons available when using panel.polygon while trying to plot in panels using lattice? No. -Deepayan

Re: [R] lattice: option to sort x when type = l

2010-07-26 Thread Deepayan Sarkar
On Mon, Jul 26, 2010 at 9:11 PM, Prasenjit Kapat kap...@gmail.com wrote: Hi, (please Cc me) In xyplot (), type = l (or one that includes l, *el*) is (generally) meaningful only when the 'x' variable is sorted. In practice, one either sorts the data frame before hand or writes a tiny panel

Re: [R] Does anybody know how to control the appearance of the end of the line in lattice?

2010-08-17 Thread Deepayan Sarkar
On Mon, Aug 9, 2010 at 1:19 AM, George Chen glc...@stanford.edu wrote: Hi All, I am plotting vertical lines using xyplot in lattice and type=h. It works well, but the problem is that the tops of the lines are convex and the bottoms are concave. Is there a way to flatten the tops and

Re: [R] creating pdf of wireframe

2010-08-17 Thread Deepayan Sarkar
On Tue, Aug 10, 2010 at 1:55 AM, jculbertson culbert...@cogsci.jhu.edu wrote: Dear R list, I have written some code to produce several wireframe plots in a panel. They look good, but when I try to create a pdf, many (but not all) of the details I have specified are not reproduced. For

Re: [R] xyplot plot with groups

2010-08-21 Thread Deepayan Sarkar
On Fri, Aug 20, 2010 at 4:03 PM, array chip arrayprof...@yahoo.com wrote: What a simple way to do what I want to do! Thanks. But if there is missing data in variable y, then the averaged lines is broken where the missing data is present. For example: dat$y[c(10,185,200,400,450)]-NA then

Re: [R] lattice::xyplot() with one factor for points and another for lines

2010-08-21 Thread Deepayan Sarkar
On Sat, Aug 21, 2010 at 5:58 AM, Dennis Murphy djmu...@gmail.com wrote: Hi: In lattice, how does one handle separate graphical behavior for two different factors? In the xyplot below, the objective is to use the levels of one factor to distinguish corresponding shapes and colors, and the

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

2010-08-26 Thread Deepayan Sarkar
On Thu, Aug 26, 2010 at 5:22 AM, Jonathan Greenberg greenb...@ucdavis.edu wrote: Oops, small typo, should be: barchart_test_heights=sin(c(1:100)) barchart_test_bins=c(c(1:50),c(1:50)) groups=c(rep(1,50),rep(2,50)) # Wish below didn't have spaces!

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

2010-08-27 Thread Deepayan Sarkar
On Fri, Aug 27, 2010 at 3:41 PM, baptiste auguie baptiste.aug...@googlemail.com wrote: Dear list, I wish to visualise some 4D data as a kind of colour / translucent cloud in 3D. I haven't seen such plots in R (but perhaps I missed a feature of rgl). The easiest option I found would be to

Re: [R] lattice: limits in reversed order with relation=same

2010-08-30 Thread Deepayan Sarkar
On Mon, Aug 30, 2010 at 3:57 PM, Thaler, Thorn, LAUSANNE, Applied Mathematics thorn.tha...@rdls.nestle.com wrote: Hi everybody, I want an x-axis which has xlim=c(max, min) rather than xlim=c(min, max) in order to reflect the type of the process (cooling): library(lattice) myprepanel -

Re: [R] lattice: limits in reversed order with relation=same

2010-08-30 Thread Deepayan Sarkar
On Mon, Aug 30, 2010 at 3:56 AM, Thaler,Thorn,LAUSANNE,Applied Mathematics thorn.tha...@rdls.nestle.com wrote: No (in fact that wouldn't work anyway), you can simply do xyplot(y~x|z, xlim = rev(extendrange(x))) The point is that in this case you have to explicitly specify a pre-computed

Re: [R] lattice: limits in reversed order with relation=same

2010-08-30 Thread Deepayan Sarkar
On Mon, Aug 30, 2010 at 5:51 AM, Thaler,Thorn,LAUSANNE,Applied Mathematics thorn.tha...@rdls.nestle.com wrote: Well, it's actually lattice:::extend.limits(range(x)), but extendrange() does basically the same thing, and is available to the user (i.e., exported), albeit from a different package.

Re: [R] online documentation only?

2010-08-30 Thread Deepayan Sarkar
On Mon, Aug 30, 2010 at 1:16 PM, Bob McCall rcm...@gmail.com wrote: Thanks for the replies. I tried help.start() and ?foo but my browser opened and was blank. It just said can't open site as I was offline. Must be my system. I'll try again. Maybe I can get it sorted out. Maybe the install was

Re: [R] xyplot (Lattice): Group order in display

2010-09-01 Thread Deepayan Sarkar
On Wed, Sep 1, 2010 at 9:00 AM, jrflanders jrfland...@gmail.com wrote: Dear R users, I would like one of my groups in xyplot to appear to lie 'behind' the other groups. I have searched for help and find many, many topics about panel order (e.g., as.table), but that is not what I need. What

Re: [R] xyplot (Lattice): Group order in display

2010-09-07 Thread Deepayan Sarkar
On Thu, Sep 2, 2010 at 1:28 AM, jrflanders jrfland...@gmail.com wrote: Thank you! It is always so simple... May I throw another question at you? In useOuterStrips, in the latticeExtra package, I am having problems calling custom strip names, e.g. useOuterStrips(xyplot(y-x | LOCATION +

Re: [R] lattice: layout and number of pages

2010-09-09 Thread Deepayan Sarkar
On Wed, Sep 8, 2010 at 5:49 AM, Philipp Pagel p.pa...@wzw.tum.de wrote:        Dear expeRts, ?xyplot says: In general, giving a high value of ‘layout[3]’ is not wasteful because blank pages are never created. But the following example does generate blank pages - well except for the ylab:

Re: [R] Sweave: infelicities with lattice graphics

2010-09-12 Thread Deepayan Sarkar
On Sun, Sep 12, 2010 at 8:47 AM, Duncan Murdoch murdoch.dun...@gmail.com wrote: On 12/09/2010 11:41 AM, Michael Friendly wrote: Just a follow-up on this thread, now with R 2.11.1. I was happy back then to use Deepayan's solution for this, under earlier R versions; but it now gives an error

Re: [R] xyplot axis line width

2010-09-14 Thread Deepayan Sarkar
On Tue, Sep 14, 2010 at 4:26 AM, array chip arrayprof...@yahoo.com wrote: Hi, another question: is there any argument that controls the line width of axis box of xyplot()? I tried lwd=2 or lwd.axis=2 in xyplot() or within scales=list() argument, without success. xyplot(1:10 ~ 1:10,

Re: [R] lattice package - wireframe plot : adding more than one surface and addiding a curve overlaid on the plot

2010-09-14 Thread Deepayan Sarkar
On Sat, Sep 11, 2010 at 2:28 AM, Raffaello Vardavas r_varda...@hotmail.com wrote: Dear R help, Suppose I have a dataframe with three columns named  p, v and C. Here C is a function of both p and v.  I can plot the surface C(p,v) using the package lattice using the function wireframe. Now

Re: [R] lattice centre a diverging colour scale

2010-09-23 Thread Deepayan Sarkar
On Thu, Sep 23, 2010 at 12:33 PM, baptiste auguie baptiste.aug...@googlemail.com wrote: Dear list, I'm using lattice::levelplot to plot a coloured image of 3D data. The range of the z values goes from negative to positive, but is not exactly centred around 0. I would however like to map a

Re: [R] how to make point character thicker in the legend of xyplot?

2010-09-24 Thread Deepayan Sarkar
On Fri, Sep 24, 2010 at 7:39 AM, Peter Ehlers ehl...@ucalgary.ca wrote: On 2010-09-23 17:57, array chip wrote: Yes, it does what I want. Thank you Peter! Just wondering what else grid.pars controls? not just the symbol in legend, right? John You can have a look at ?gpar (after loading

Re: [R] Lattice xyplot and groups

2010-09-24 Thread Deepayan Sarkar
On Wed, Sep 22, 2010 at 12:21 AM, Axel axelg...@gmail.com wrote: Hi, I'm trying to plot many (x, y) data files using the xyplot function from the lattice package. Each file can be classified by set name (s1, s2,...) and data type (A, B, ...). Each data set contains a different number of

Re: [R] scientific vs. fixed notation in xyplot()

2010-09-27 Thread Deepayan Sarkar
On Mon, Sep 27, 2010 at 5:28 PM, array chip arrayprof...@yahoo.com wrote: I found where the problem is with y-axis, the yscale.components.log10 should be yscale.components.log10 - function(lim, ...) {    ans - yscale.components.default(lim = lim, ...)    tick.at - logTicks(10^lim,loc=1)    

Re: [R] bwplot superpose panel.points from another dataframe

2010-09-28 Thread Deepayan Sarkar
On Tue, Sep 28, 2010 at 12:59 PM, Christophe Bouffioux christophe@gmail.com wrote: Thanks for your help Peter but the red marks on boxplot do not correspond to ex2 dataframe actually, it reproduce on each panel the same marks that is to say the 3 first lines of ex2 So this is not correct

Re: [R] conditional assignment of colors in xyplot()

2010-09-30 Thread Deepayan Sarkar
On Mon, Sep 27, 2010 at 7:11 AM, nathan pellegrin nathan.pelleg...@gmail.com wrote: # Dear R Community, # I have this data frame: df1 - data.frame(        F1 = factor( c( rep(D1,12),rep(D2,12),rep(D3,12) ) ),        F2 = factor( rep( rep( paste(O,1:6,sep=), rep(2,6) ), 3) ),        F3 =

Re: [R] own TAB expansion

2010-10-09 Thread Deepayan Sarkar
On Fri, Oct 8, 2010 at 6:19 AM, Sebastian Gibb li...@sebastiangibb.de wrote: Hello Duncan, thank for your advice, but it doesn't work like expected: setClass(Class=A, representation=representation(slotA=numeric, slotB=numeric)); setMethod($, A, function(x, name) {return(slot(x, name));})

Re: [R] point characters THICKER in xyplot()

2010-10-09 Thread Deepayan Sarkar
On Fri, Oct 8, 2010 at 5:19 PM, array chip arrayprof...@yahoo.com wrote: Hi, how can I make the point characters thicker (NOT larger) in xyplot when groups= argument is used? dat-data.frame(x=1:100,y=1:100,group=rep(LETTERS[1:5],each=20))    ### lwd=2 doesn't work here

Re: [R] how to retrieve user coordinates in xyplot

2010-10-09 Thread Deepayan Sarkar
On Fri, Oct 8, 2010 at 3:52 PM, array chip arrayprof...@yahoo.com wrote: Hi, is there a way to retrieve the extremes of the user coordinates of the plotting region, like what par(usr) does in general graphics? I'd like to use them to print additional texts at certain place inside each panel.

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] 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] 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] 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] 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] 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] 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] 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] 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] 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] 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] bwplot puts the bars in the wrong place

2010-04-16 Thread Deepayan Sarkar
On Fri, Apr 16, 2010 at 1:54 PM, James Rome jamesr...@gmail.com wrote: Dear R-Help, With the attached data set, I am still getting incorrect bwplots None of your attachments came through (presumably because of the list filters), and we need the data to figure out what's happening. Either put

Re: [R] lattice code to plot columns over another variable

2010-04-23 Thread Deepayan Sarkar
On Tue, Apr 20, 2010 at 9:03 AM, Rajarshi Guha rajarshi.g...@gmail.com wrote: Hi, I've been struggling with a lattice visualiation. I have a data.frame with 4 columns. What I'd like to have is a set of 3 panels. Ecah panel will have the first column plotted against serial number and then will

Re: [R] the bar width of barchart plot in lattice package

2010-04-23 Thread Deepayan Sarkar
On Wed, Apr 21, 2010 at 8:55 PM, David Winsemius dwinsem...@comcast.net wrote: On Apr 21, 2010, at 9:51 PM, zhenjiang xu wrote: I tried that. It seems the bar width is already maximized, although there is a lot of space between groups of bars. Thank you anyway. I apologize. It was

Re: [R] How to stamp my graphs with date and time

2010-04-23 Thread Deepayan Sarkar
On Wed, Apr 21, 2010 at 4:02 PM, David Winsemius dwinsem...@comcast.net wrote: On Apr 21, 2010, at 6:58 PM, David Winsemius wrote: Sarkar offers a worked example of taking user input regarding location for locating a grid viewport outside the plot area.

Re: [R] How to insert gridlines in lattice density plot

2010-04-23 Thread Deepayan Sarkar
On Thu, Apr 22, 2010 at 3:16 PM, Giles gilescr...@verizon.net wrote: Thank you Burt Gunter and David Winsemius, I confirmed David's comment. One must use type=c(p,g) in order to get both the grid and points. So, to use densityplot well, we must be quite aware of the options for

Re: [R] barchart in lattice 0.18-5

2010-04-24 Thread Deepayan Sarkar
On Sat, Apr 24, 2010 at 7:43 PM, Felix Andrews fe...@nfrac.org wrote: On 25 April 2010 08:41, Erich Studerus erich.stude...@bli.uzh.ch wrote: Hello After updating to R version 2.11.0, the xlim argument of the lattice barchart function does no longer work as expected. For example, the

Re: [R] How to stamp my graphs with date and time

2010-04-24 Thread Deepayan Sarkar
On Sat, Apr 24, 2010 at 3:26 PM, Jun Shen jun.shen...@gmail.com wrote: Hi, David, Thanks. It is working perfectly now. But I still don't understand the argument page, I couldn't find it in text() or par(). Also in the page = function(n){..} the argument n does not appear anywhere and it

Re: [R] Adding error bars to xyplot()

2010-04-24 Thread Deepayan Sarkar
On Fri, Apr 23, 2010 at 12:56 PM, Jon Zadra jr...@virginia.edu wrote: I took a look at xYplot() but it is beyond over-complex, at least for my level, and the documentation isn't too clear. Is there a simple way to make functions like plotCI() and errbar() use the lattice reference rather than

Re: [R] Lattice Groups

2010-04-30 Thread Deepayan Sarkar
On Thu, Apr 29, 2010 at 6:15 PM, Santosh santosh2...@gmail.com wrote: Richard, Thanks for your email. I am not looking for that kind of plot as you had suggested. I would like to see overlaid boxplots. Deepayan had earlier shown the method of overlay of boxplots (using

Re: [R] 3-D response surface using wireframe()

2010-05-02 Thread Deepayan Sarkar
On Fri, Apr 9, 2010 at 1:46 PM, array chip arrayprof...@yahoo.com wrote: David, Thanks for the 2 previous posts from Sarkar. Actually, I am now one step closer. I am now able to remove the 3 outer lines of the bounding box using par.box argument, even Sarkar said in his 2008 post that

Re: [R] trellis/lattice: How to plot 4 panels with the same x-scale but different y-scales?

2010-05-06 Thread Deepayan Sarkar
On Thu, May 6, 2010 at 12:16 PM, Marius Hofert m_hof...@web.de wrote: Dear R experts, I have four plots I would like to plot attached to each other (in panels). All plots have the same x-scale, but different y-scales. The example below shows pretty much what I would like to have, except

Re: [R] trellis/lattice: How to plot 4 panels with the same x-scale but different y-scales?

2010-05-06 Thread Deepayan Sarkar
). -Deepayan On 2010-05-06, at 13:53 , Deepayan Sarkar wrote: On Thu, May 6, 2010 at 12:16 PM, Marius Hofert m_hof...@web.de wrote: Dear R experts, I have four plots I would like to plot attached to each other (in panels). All plots have the same x-scale, but different y-scales. The example below

Re: [R] bwplot: how to draw smooth curve through medians?

2010-05-12 Thread Deepayan Sarkar
On Wed, May 12, 2010 at 3:24 AM, Marius Hofert m_hof...@web.de wrote: Dear R experts, Is there an easy way how to combine the black dots (i.e., the medians) in the bwplot bwplot(voice.part ~ height, data=singer, xlab=Height (inches)) by a smooth curve? Depends on what you mean by smooth.

Re: [R] lattice::panel.levelplot.raster too picky with unequal spacing

2010-05-18 Thread Deepayan Sarkar
On Tue, May 18, 2010 at 6:32 PM, baptiste auguie baptiste.aug...@googlemail.com wrote: Dear all, I got a couple of warnings using panel.levelplot.raster, In panel.levelplot.raster(..., interpolate = TRUE) :  'y' values are not equispaced; output will be wrong although I was quite sure my

Re: [R] lattice: How to plot an xyplot (with panels) without using a dataframe?

2010-05-19 Thread Deepayan Sarkar
On Wed, May 19, 2010 at 5:45 PM, Marius Hofert m_hof...@web.de wrote: Dear R users, Is it possible to draw an xyplot (example below) without having to build a dataframe? Yes, for example x = 1:10 y = rnorm(10) g = gl(2, 5) xyplot(y ~ x | g) But that is not really your question. For

Re: [R] segplot (latticeExtra)

2010-05-25 Thread Deepayan Sarkar
On Tue, May 25, 2010 at 8:37 AM, Sebastian P. Luque splu...@gmail.com wrote: Hi, I'm having a bit of trouble with 'scales=free' in the segplot() function of latticeExtra.  Say we need panels for each year, showing only those counties that are represented in each one:

Re: [R] Lattice: relation = 'free' in scales

2010-05-26 Thread Deepayan Sarkar
On Tue, May 25, 2010 at 9:30 PM, Peter Ehlers ehl...@ucalgary.ca wrote: Albart, On 2010-05-25 1:51, Albart wrote: Hello list, I am making graphics for an article which I want to publish. The article is about several methods (to calculate breeding values of individuals) applied in

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] 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] 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] 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] 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

  1   2   3   4   5   6   7   8   >