Re: [R] Trellis Plot Labels

2006-11-17 Thread Deepayan Sarkar
On 11/17/06, Turgut Durduran [EMAIL PROTECTED] wrote: On 11/17/06, Turgut Durduran [EMAIL PROTECTED] wrote: Hello everyone, I am ploting a groupeddata object with formula: formula(mydatausegroup) BF ~ HO | ID/Infar/Day Using this command: plot(na.omit(mydatausegroup),

Re: [R] lattice: histogram of factor variable

2006-11-10 Thread Deepayan Sarkar
On 11/10/06, Albrecht, Dr. Stefan (AZ Private Equity Partner) [EMAIL PROTECTED] wrote: Dear all, I am encountering a problem with lattice in the current version 0.14-13 with R version 2.4.0 on a Windows XP system. For example, histogram(~voice.part, singer) is not labeling the x labels

Re: [R] Trying to create multiple stripcharts

2006-11-08 Thread Deepayan Sarkar
On 11/8/06, Marc Feuerstein [EMAIL PROTECTED] wrote: Hi everybody, I'm a new member of the list. I'm just starting to use R. I'm looking for information about stripcharts. I didn't find a lot on the web. Outside http://www.maths.lth.se/help/R/.R/library/graphics/html/stripchart.html there

Re: [R] line width (all elements) in Trellis

2006-11-06 Thread Deepayan Sarkar
On 11/6/06, Daniel E. Bunker [EMAIL PROTECTED] wrote: Dear All, I am hoping to implement a barchart using trellis graphics where all elements have a line width of 2. Using trellis.par.set(), I am able to make most elements lwd=2, but not all. In particular, the top of the box (above the

Re: [R] line width (all elements) in Trellis

2006-11-06 Thread Deepayan Sarkar
On 11/6/06, Paul Murrell [EMAIL PROTECTED] wrote: Hi Deepayan Sarkar wrote: On 11/6/06, Daniel E. Bunker [EMAIL PROTECTED] wrote: Dear All, I am hoping to implement a barchart using trellis graphics where all elements have a line width of 2. Using trellis.par.set(), I am able

Re: [R] [R-pkgs] rcompletion: TAB completion for the R command line

2006-11-03 Thread Deepayan Sarkar
Just a quick follow-up. Thanks to Simon Urbanek and hints from Alexandre Aguiar, CRAN now has a version (0.0-10) of rcompletion that should work on more systems. If it still doesn't work when you think it should, please let me know. -Deepayan On 10/30/06, Deepayan Sarkar [EMAIL PROTECTED] wrote

Re: [R] would like to see R plots on local X display

2006-11-02 Thread Deepayan Sarkar
On 11/2/06, Vladimir Eremeev [EMAIL PROTECTED] wrote: Dear useRs, Sorry, if this is a FAQ. I just need the direction to dig. I am working on the linux box (its DNS name is raccoon, to be definite), Fedora Core 3. I connect with ssh to another linux box (Debian, dns name chena) and run R

Re: [R] something wrong with the R repository USA(WA) (fhcrc.org)

2006-11-02 Thread Deepayan Sarkar
On 11/2/06, Vladimir Eremeev [EMAIL PROTECTED] wrote: I have temporarily changed my working place and now checking for updates the R repository at the University of Washington, closest to me. It doesn't give updates. call update.packages(ask=FALSE) with repository USA(WA) didn't do anything,

Re: [R] xyplot: Plotting two variables, one as points - the other as line. Can that be done without explicitly using panel functions

2006-11-01 Thread Deepayan Sarkar
On 11/1/06, Søren Højsgaard [EMAIL PROTECTED] wrote: Hi! Consider d - data.frame(x=1:10,y=5+1:10, yf=rnorm(10,5+1:10)) x yyf 1 1 6 5.268621 2 2 7 8.623896 3 3 8 8.114830 4 4 9 10.125955 5 5 10 9.977261 ... I plot y and yf against x with

Re: [R] 2.4.0 and lattice 0.14-9: Changed behaviour of scales-argumenttck

2006-10-31 Thread Deepayan Sarkar
On 10/31/06, Gerrit Eichner [EMAIL PROTECTED] wrote: Dear list, I have observed a change in the behaviour of the scales-argument tck of xyplot() after having installed R 2.4.0 (for version info see below). The help page of xyplot() says about the scales-argument tck: 'tck' numeric to

Re: [R] [R-pkgs] rcompletion: TAB completion for the R command line

2006-10-31 Thread Deepayan Sarkar
need ncurses if libreadline is not statically linked against it I'll try to adapt that and put out a test version tomorrow. -Deepayan Em Ter 31 Out 2006 02:10, Deepayan Sarkar escreveu: However, there are known cases of false negatives, i.e. installation failing when it shouldn't

Re: [R] Hmisc or Lattice plot with error bars, Depth (independent variable) on Y axis

2006-10-30 Thread Deepayan Sarkar
On 10/30/06, Mike Bock [EMAIL PROTECTED] wrote: I am trying to create some plots of concentration versus depth. I want Depth on the Y axis and the concentrations on the X axis. I also need to plot error bars. The xYplot function in Hmisc is very nearly ideal but I have to put depth on

[R] [R-pkgs] rcompletion: TAB completion for the R command line

2006-10-30 Thread Deepayan Sarkar
CRAN now has a package called rcompletion that attempts to provide TAB completion for R using the GNU readline library, intended for R sessions run from a command line. From the package help page: Description: This package provides pseudo-intelligent TAB completion for a readline enabled

Re: [R] What determines the order of rows in a lattice barchart?

2006-10-28 Thread Deepayan Sarkar
On 10/28/06, Geoff Russell [EMAIL PROTECTED] wrote: Hi, What determines the order of the rows in a barchart? That's not a well defined question, as barchart is generic, and methods are free to choose their own order (and much more). See below for an answer for the formula method, which is what

Re: [R] Question: xyplot panel configurations for Trellis package

2006-10-27 Thread Deepayan Sarkar
On 10/27/06, Zheleznyak, Anatoley [EMAIL PROTECTED] wrote: Hi, I am new to R community and I have a question on panel configurations in the Trellis package. Particularly, I have the following code: require(lattice) plotTable - NULL Date - seq(as.Date(2006-11-01), as.Date(2009-12-01), by =

Re: [R] barcharts with 2 different axes

2006-10-26 Thread Deepayan Sarkar
On 10/26/06, Geoff Russell [EMAIL PROTECTED] wrote: Dear UseRs, I'm having trouble drawing a barchart with 2 quantities in different units as follows with one unit on the top axis and the other unit on the bottom. E.g., x Tonnes | . . . Row 1

Re: [R] Trellis Conditional contourplot

2006-10-25 Thread Deepayan Sarkar
On 10/25/06, Marco LO [EMAIL PROTECTED] wrote: OK! # The R codes to generate the Trellis plot are from the R help archive by Karl Ove Hufthammer panel.estcontplot - function(x, y, ..., pretty=TRUE, region=FALSE) { cest.gr=kde2d(x, y) cest.gr.lat=con2tr(cest.gr)

Re: [R] cloud() works but wireframe() is blank

2006-10-25 Thread Deepayan Sarkar
On 10/25/06, Larry Layne [EMAIL PROTECTED] wrote: Per the message from Alexander Nervedi, 29 April 2006: I have to be making a riddiculously silly ommission. when I run the fillowing i get the cloud plot ok. But I cant figure out what I am missing out when I call wireframe. Any help

Re: [R] Coding style query (braces)

2006-10-25 Thread Deepayan Sarkar
On 10/25/06, Mike Prager [EMAIL PROTECTED] wrote: Re: placement of braces and else clauses. At the R prompt, I believe their placement must avoid causing a syntactically complete statement at the wrong place. This can results in what might be considered rather awkward looking code. IF it

Re: [R] density plot text

2006-10-25 Thread Deepayan Sarkar
On 10/25/06, Murray Pung [EMAIL PROTECTED] wrote: Is there any way of adding text to a density plot? I have had a go using the text() function but I think the error is because this function doesn't work with densityplot(). Alternatively, I understand I can achieve pretty much the same result

Re: [R] Trellis Conditional contourplot

2006-10-24 Thread Deepayan Sarkar
On 10/24/06, Marco LO [EMAIL PROTECTED] wrote: Hello All, I've problems to interpret the contourplot for a binary response dependent variable. For example, I ploted the survived probability for the titanic3 dataset, http://www.geocities.com/useebi/data/CondenContour.jpeg Trellis

Re: [R] Key colour problem with lattice plot

2006-10-23 Thread Deepayan Sarkar
On 10/23/06, Alex Brown [EMAIL PROTECTED] wrote: Hi Geoffrey, I replicated your problem, and I came up with the same solution as Deepayan, so I won't reprint it here but: Can anyone explain why the key is inverted versus the bar order? Because the key goes from top to

Re: [R] Color eps/ps output from specialized plots?

2006-10-23 Thread Deepayan Sarkar
On 10/23/06, Turgut Durduran [EMAIL PROTECTED] wrote: Hello, First a disclaimer :) I am very new to using R. I am generating some plots and eventhough I can get colored output in the encapsulated postscript files in the simplest of commands (e.g. plot(1:10,1:10, type=l, col=red) ), it

Re: [R] Key colour problem with lattice plot

2006-10-23 Thread Deepayan Sarkar
On 10/23/06, Alex Brown [EMAIL PROTECTED] wrote: Can anyone explain why the key is inverted versus the bar order? Because the key goes from top to bottom, while cartesian coordinates go from bottom to top. Neither can really be any other way by default, if you think about it.

Re: [R] Key colour problem with lattice plot

2006-10-22 Thread Deepayan Sarkar
On 10/22/06, Geoff Russell [EMAIL PROTECTED] wrote: Hi, I seem to have a key colour problem with a lattice barchart. The colours on my key rectangle don't match the colours on the barchart. That's because you are using the wrong colors in the key (see the output of show.settings()). I would

Re: [R] Key colour problem with lattice plot

2006-10-22 Thread Deepayan Sarkar
On 10/22/06, Geoff Russell [EMAIL PROTECTED] wrote: Many thanks Deepayan, On 10/23/06, Deepayan Sarkar [EMAIL PROTECTED] wrote: On 10/22/06, Geoff Russell [EMAIL PROTECTED] wrote: Hi, I seem to have a key colour problem with a lattice barchart. The colours on my key rectangle

Re: [R] Adding locfit confidence intervals in trelis xyplot

2006-10-19 Thread Deepayan Sarkar
, ...) { panel.xyplot(x, y, ...) args - list(x = x, y = y, ...) ok - names(formals(locfit.raw)) llines.locfit(do.call(locfit.raw, args[ok[ok %in% names(args)]])) } (removing the irrelevant part) -Deepayan - juan On Thu, 2006-10-19 at 07:49 +, Dieter Menne wrote: Deepayan

Re: [R] A question regarding Wireframe in Package Lattice

2006-10-19 Thread Deepayan Sarkar
On 10/19/06, Saptarshi Guha [EMAIL PROTECTED] wrote: Hello, The following code produces a quadrilateral: q-matrix(c(1,3,1,2,3,1,2,4,2,1,4,2),nrow=4,byrow=T) qc-xyz.coords(q) wireframe(z~y*x,qc) I have 2 questions 1)

Re: [R] lmer- why do AIC, BIC, loglik change?

2006-10-18 Thread Deepayan Sarkar
On 18 Oct 2006 16:21:11 -0400, Darren M. Ward [EMAIL PROTECTED] wrote: Hi all, I am having issues comparing models with lmer. As an example, when I run the code below the model summaries (AIC, BIC, loglik) differ between the summary() and anova() commands. Can anyone clear up what's wrong?

Re: [R] Adding locfit confidence intervals in trelis xyplot

2006-10-18 Thread Deepayan Sarkar
On 10/18/06, juan f poyatos [EMAIL PROTECTED] wrote: Dear all, I am trying to include confidence intervals in a xyplot. This is what I am doing: xyplot(x ~ y|z, alpha = 1,band = global,panel = panel.locfit) (more specifically, in my case x is a binary response from a logistic regression

Re: [R] Adding per-panel text to panel strips in lattice xyplot

2006-10-17 Thread Deepayan Sarkar
On 10/13/06, Frank E Harrell Jr [EMAIL PROTECTED] wrote: I would like to add auxiliary information to the bottom of two strips on each panel that comes from a table look-up using the values of two variables that define the panel. For example I might panel on sex and race, showing 3 randomly

Re: [R] Adding per-panel text to panel strips in lattice xyplot

2006-10-17 Thread Deepayan Sarkar
On 10/17/06, Frank E Harrell Jr [EMAIL PROTECTED] wrote: Deepayan Sarkar wrote: On 10/13/06, Frank E Harrell Jr [EMAIL PROTECTED] wrote: I would like to add auxiliary information to the bottom of two strips on each panel that comes from a table look-up using the values of two variables

Re: [R] barplot question

2006-10-17 Thread Deepayan Sarkar
On 10/17/06, Leeds, Mark (IED) [EMAIL PROTECTED] wrote: i'm doing a bar plot and there are 16 column variables. is there a way to make the variable names go down instead of across when you do the barplot ? because the names are so long, the barplot just shows 3 names and leaves the rest out.

Re: [R] MASS need R = 2.4.0!!!

2006-10-15 Thread Deepayan Sarkar
See this thread on the R-Debian list: https://stat.ethz.ch/pipermail/r-sig-debian/2006-October/000126.html -Deepayan On 10/15/06, Ronaldo ReisJunior [EMAIL PROTECTED] wrote: Hi, I have R 2.3.1 installed by debian páckage. I install only the base and recommended R packages from Debian

Re: [R] Sweave, R and complex latex projects

2006-10-14 Thread Deepayan Sarkar
On 10/14/06, Mark Wardle [EMAIL PROTECTED] wrote: Hello all, I've been able to use R very successfully to run simple statistics and generate the plots I require. I've been evaluating Sweave, and have hit upon a small problem that I don't seem to be able to workaround. Sweave runs very well

Re: [R] side by side plot of Histogram and densityplot

2006-10-13 Thread Deepayan Sarkar
On 10/13/06, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: Using par seems easily put a hist and a density side by side on the same output window. I would like to use some features in histogram from Lattice, but how can I put histogram and densityplot side by side on the same graph?

Re: [R] adding error bars to lattice plots

2006-10-13 Thread Deepayan Sarkar
On 10/13/06, Daniel E. Bunker [EMAIL PROTECTED] wrote: Dear Deepayan and Sundar, Thank you so much for your help with this. However, I may have phrased my problem too specifically, assuming that *in general* I could apply your response to all Lattice graphics. What I need is a barchart or

Re: [R] adding error bars to lattice plots

2006-10-12 Thread Deepayan Sarkar
On 10/12/06, Daniel E. Bunker [EMAIL PROTECTED] wrote: Dear R users, About a year ago Deepayan offered a suggestion to incorporate error bars into a dotplot using the singer data as an example http://finzi.psych.upenn.edu/R/Rhelp02a/archive/63875.html. When I try to utilize this code with a

Re: [R] How to force x AND y log scale in xyplot?

2006-10-12 Thread Deepayan Sarkar
On 10/12/06, Thomas P. Colson [EMAIL PROTECTED] wrote: the following plots a log-log plot of cumulative drainage area, but the axis labels are 10^-1, ...10^5, so forth. xyplot(white$rank.PRank~white$basin_area,scales=list(log=TRUE),xlab=Drainag e Area m^2,ylab=P(AA*)) When I try this,

Re: [R] panel-dependent distribution in qqmath

2006-10-11 Thread Deepayan Sarkar
On 10/11/06, Benjamin Tyner [EMAIL PROTECTED] wrote: In qqmath, how would one go about having 'distribution' change with panel.number? I've tried set.seed(1) mydata - data.frame(ind = factor(rep(2:4, each = 100))) mydata$val - rt(300, df=rep(2:4, each = 100)) plot-qqmath(~ val | ind,

Re: [R] Surfaceplot3D with wireframe

2006-10-10 Thread Deepayan Sarkar
On 10/10/06, Gustaf Granath [EMAIL PROTECTED] wrote: Hi, I want to make a surface3D plot of a landscape. I have cordinates (x, y, z) recorded with a GPS. The datapoints are not evenly distributed within the rectangular area. To do a fast 3D plot I used following. library(grid)

Re: [R] Function that operates on functions: it's ok, but the display isn't

2006-10-10 Thread Deepayan Sarkar
On 10/10/06, Alberto Monteiro [EMAIL PROTECTED] wrote: The following code works fine: # g is the function that returns the square of a number g - function(y) y^2 # f1 is a function that takes one function # as argument, and returns another function f1 - function(f) function(x) f(x+1) -

Re: [R] lattice: adding text to plots

2006-10-09 Thread Deepayan Sarkar
On 10/9/06, Ritwik Sinha [EMAIL PROTECTED] wrote: Hi Gabor, Thanks for your reply. The solution you gave me and the one that I had attempted have the same problem. The plots don't differentiate between y1 and y2, in other words, they loose the groups attribute. This is what 'does not work'

[R] dispatch on functions (was: Re: ifelse(logical, function1, function2) does not work)

2006-10-09 Thread Deepayan Sarkar
On 10/7/06, Gabor Grothendieck [EMAIL PROTECTED] wrote: I have noticed that dispatch on functions seems not to work in another case too. We define + on functions (I have ignored the niceties of sorting out the environments as we don't really need it for this example) but when we try to use

Re: [R] sparklines in lattice

2006-10-06 Thread Deepayan Sarkar
On 10/6/06, Mark Difford [EMAIL PROTECTED] wrote: Dear R-help, Has anyone implemented sparklines in the strips of a lattice plot? What I have in mind is, say, highlighting that part of a time series that one is examining in more detail in a set of lattice plots. It's not particularly

Re: [R] Sum of Bernoullis with varying probabilities

2006-10-06 Thread Deepayan Sarkar
On 10/6/06, Ted Harding [EMAIL PROTECTED] wrote: Hi Folks, Given a series of n independent Bernoulli trials with outcomes Yi (i=1...n) and Prob[Yi = 1] = Pi, I want P = Prob[sum(Yi) = r] (r = 0,1,...,n) I can certainly find a way to do it: Let p be the vector c(P1,P2,...,Pn). The

Re: [R] Sum of Bernoullis with varying probabilities

2006-10-06 Thread Deepayan Sarkar
On 10/6/06, Ted Harding [EMAIL PROTECTED] wrote: Many thanks for your comments, Deepayan; and I liked your recursive solution! Fun indeed. Just a comment (below) on one of your comments (the rest snipped). On 06-Oct-06 Deepayan Sarkar wrote: On 10/6/06, Ted Harding [EMAIL PROTECTED] wrote

Re: [R] xyplot

2006-10-05 Thread Deepayan Sarkar
On 10/5/06, Osman Al-Radi [EMAIL PROTECTED] wrote: Hi, for the data below: time-c(rep(1:10,5)) y-time+rnorm(50,5,2) subject-c(rep('a',10),rep('b',10),rep('c',10),rep('d',10),rep('e',10)) group-c(rep('A',30),rep('B',20)) df-data.frame(subject,group,time,y) I'd like to produce a plot with

Re: [R] Problems with graphics

2006-10-04 Thread Deepayan Sarkar
On 10/3/06, Christophe Nguyen [EMAIL PROTECTED] wrote: Thank you for your response, which is a partial solution to my problem. Actually, I would like to do the following plot. I have a data frame that includes the following variables: time, y=a response variable experimentally determined,

Re: [R] strip function

2006-10-04 Thread Deepayan Sarkar
On 10/4/06, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: Hi, I would like to asign titles into strip of a panel of curves designed thanks to a xyplot function (lattice package) I ve tried the strip function, ... here is my code I would like to write in the strip of each panel conditionning

Re: [R] Plotting text with lattice

2006-09-29 Thread Deepayan Sarkar
On 9/29/06, Gabor Grothendieck [EMAIL PROTECTED] wrote: Here are two possibilities. The first use trellis.focus/trellis/unfocus to add text subsequent to drawing the xyplot and the second uses a custom panel: xyplot(x ~ x, data = data.frame(x = 1:10)) trellis.focus(panel, 1, 1)

Re: [R] Evaluation of defaults in functions

2006-09-28 Thread Deepayan Sarkar
On 9/28/06, Ulrich Keller [EMAIL PROTECTED] wrote: Hello, and sorry if this is already explained somewhere. I couldn't find anything. R (2.3.1, Windows) seems to perform some kind of lazy evaluation when evaluating defaults in function calls that, at least for me, leads to unexpected

Re: [R] multiple xyplots on the same graph

2006-09-28 Thread Deepayan Sarkar
On 9/28/06, S. Swaminathan [EMAIL PROTECTED] wrote: I am new to R and am having trouble plotting multiple xyplots on the same graph. I have a dataframe x1 with 3 columns month, var1, var2. Month is a factor while var1 and var2 are numeric. Reading through the archives I learned to plot var1

Re: [R] dotplot, dropping unused levels of 'y'

2006-09-26 Thread Deepayan Sarkar
On 9/26/06, Benjamin Tyner [EMAIL PROTECTED] wrote: Deepayan Sarkar wrote: On 9/15/06, Benjamin Tyner [EMAIL PROTECTED] wrote: In dotplot, what's the best way to suppress the unused levels of 'y' on a per-panel basis? This is useful for the case that 'y' is a factor taking perhaps

Re: [R] New project: littler for GNU R

2006-09-26 Thread Deepayan Sarkar
On 9/26/06, Richard M. Heiberger [EMAIL PROTECTED] wrote: I like this plan and have now played with the concept. I did the following on Windows in cygwin. It would also work in Unix, and I think could be tickled to work on the standard MS cmd line in Windows. It would certainly work on

Re: [R] Lattice strip labels for two factors

2006-09-26 Thread Deepayan Sarkar
On 9/26/06, Joe Moore [EMAIL PROTECTED] wrote: Dear All: In the following code which I modified from previous question, Perhaps you should also have checked if it runs after the modification. in addition to show the fact1 level names (y, b, r) in strips, I also want to have a color bar to

Re: [R] Bug in formals-

2006-09-26 Thread Deepayan Sarkar
On 9/26/06, Frank E Harrell Jr [EMAIL PROTECTED] wrote: I think this is new since a previous version of R: h - function(x, trantab) trantab[x] w - 6:4 names(w) - c('cat','dog','giraffe') w cat dog giraffe 6 5 4 formals(h) - list(x=numeric(0),

Re: [R] plotting grouped data object

2006-09-25 Thread Deepayan Sarkar
On 9/23/06, Afshartous, David [EMAIL PROTECTED] wrote: All, I'd like to plot the main relationship of a grouped data object for all levels of a factor in a single panel. The sample code below creates a separate panel for each level of the factor. I realize that this could be done in other

Re: [R] Lattice strip labels for two factors

2006-09-23 Thread Deepayan Sarkar
On 9/23/06, Gabor Grothendieck [EMAIL PROTECTED] wrote: 1. You can write a custom strip function: my.strip - function(which.given, ..., factor.levels) { levs - if (which.given == 1) factor.levels else c(faro, porto, lisbon, setubal)

Re: [R] Adding .R to source file keeps R from reading it?

2006-09-21 Thread Deepayan Sarkar
On 9/21/06, John Tillinghast [EMAIL PROTECTED] wrote: Hi, I'm updating the LMGene package from Bioconductor. Writing R Extensions suggests that all source files (the ones in the R directory) have a .R ending, so I added it to the (one) source file. The next time I installed and ran R, R

Re: [R] functionality of update in SAS

2006-09-20 Thread Deepayan Sarkar
On 9/20/06, Denis Chabot [EMAIL PROTECTED] wrote: Dear list, I've tried to search the archives but found nothing, although I may use the wrong wording in my searches. I've also double-checked the upData function in Hmisc, but it does something else. I'm wondering if one can update a

Re: [R] dotplot/Dotplot: connecting points within factor level across time

2006-09-18 Thread Deepayan Sarkar
On 9/16/06, Benjamin Tyner [EMAIL PROTECTED] wrote: For each level of the factor in dotplot, I have time points I'd like to connect with a line. In the example below, 'x' represents a starting time and 'd' a duration, and I wish to connect 'x' to 'x+d'. Ordinarily I would use Dotplot from

Re: [R] dotplot, dropping unused levels of 'y'

2006-09-15 Thread Deepayan Sarkar
On 9/15/06, Benjamin Tyner [EMAIL PROTECTED] wrote: In dotplot, what's the best way to suppress the unused levels of 'y' on a per-panel basis? This is useful for the case that 'y' is a factor taking perhaps thousands of levels, but for a given panel, only a handfull of these levels ever

[R] converting strings to expressions

2006-09-14 Thread Deepayan Sarkar
Hi, consider this: -- estr - c(2^4, alpha[1]) eexp - expression(2^4, alpha[1]) ## Is it possible to get 'eexp' starting from 'estr'? The closest I could ## get was: do.call(expression, lapply(estr, as.name)) ## but it is not quite the same; e.g. the following behave differently:

Re: [R] converting strings to expressions

2006-09-14 Thread Deepayan Sarkar
On 14 Sep 2006 21:44:01 +0200, Peter Dalgaard [EMAIL PROTECTED] wrote: Deepayan Sarkar [EMAIL PROTECTED] writes: Hi, consider this: -- estr - c(2^4, alpha[1]) eexp - expression(2^4, alpha[1]) ## Is it possible to get 'eexp' starting from 'estr'? The closest I

Re: [R] converting strings to expressions

2006-09-14 Thread Deepayan Sarkar
On 9/14/06, Prof Brian Ripley [EMAIL PROTECTED] wrote: On Thu, 14 Sep 2006, Deepayan Sarkar wrote: [...] Ah, I'd forgotten about parse. A link from ?expression might be reasonable. But it says Details: 'Expression' here is not being used in its colloquial sense

Re: [R] wireplot margins and additional z-axis

2006-09-13 Thread Deepayan Sarkar
On 9/13/06, Duncan Murdoch [EMAIL PROTECTED] wrote: On 9/13/2006 4:04 AM, Klaus Nordhausen wrote: Dear Deepayan, sorry for not being clear - but my problem has nothing to do with the aspect. If I create the eps the following way There is some ambiguity here. The aspect arg to

Re: [R] forcing levelplot to use relative cuts (ie cuts for each panel)

2006-09-13 Thread Deepayan Sarkar
On 9/13/06, Mike Townsley [EMAIL PROTECTED] wrote: Dear guRus, I'm having trouble producing a levelplot with relative cuts for each panel (my data has large differences in scales, so I want to use quantiles for each panel). My attempts to change the 'at' argument in panel.levelplot

Re: [R] lattice cloud and conditional axis limits

2006-09-12 Thread Deepayan Sarkar
On 9/12/06, Karl Ove Hufthammer [EMAIL PROTECTED] wrote: I'm using the 'cloud' function in the 'lattice' package to produce multi-panel 3D scatter plots. The range of the values used vary much between each panel (especially on the z axis), so I wish the axis limits to be calculated based on

Re: [R] wireplot margins and additional z-axis

2006-09-12 Thread Deepayan Sarkar
On 9/12/06, Klaus Nordhausen [EMAIL PROTECTED] wrote: Dear Deepayan, thanks for your reply, the change of the aspect does however not solve my problem with the space below the graph on the .eps I attached the .eps (still with the old aspect) so that it is maybe clearer what my problem is.

Re: [R] wireplot margins and additional z-axis

2006-09-11 Thread Deepayan Sarkar
On 9/11/06, Klaus Nordhausen [EMAIL PROTECTED] wrote: Dear R experts, it would be very kind if you could help me with two wireplot problems. First, when I make a wireplot and transform it into an .eps using the postscript function the eps-file leaves always a lot of space below the plot,

Re: [R] augPred plot in nlme library

2006-09-09 Thread Deepayan Sarkar
[mailto:[EMAIL PROTECTED] Sent: Friday, September 08, 2006 5:46 PM To: Afshartous, David Cc: Deepayan Sarkar; r-help@stat.math.ethz.ch Subject: Re: [R] augPred plot in nlme library Hi David, this is the sort of thing that Deepayan meant. Make a dataset available to us, or use one

Re: [R] augPred plot in nlme library

2006-09-08 Thread Deepayan Sarkar
On 9/8/06, Afshartous, David [EMAIL PROTECTED] wrote: All, I've solved part of the problem below by making sure that the formula in the grouped data object is the same as the formula specified within lme (this isn't the case in the cited example from Pinheiro Bates). However, augPred seems

Re: [R] augPred plot in nlme library

2006-09-08 Thread Deepayan Sarkar
to be the fitted curves from a linear model. plot(augPred(fm3comp)) Possibly augPred behaves differently in R than in S, but reading the R help and trying various other approaches has not solved this. Thanks! Dave -Original Message- From: Deepayan Sarkar [mailto:[EMAIL PROTECTED

Re: [R] Lattice plot with fitted curves

2006-09-01 Thread Deepayan Sarkar
On 9/1/06, David Scott [EMAIL PROTECTED] wrote: I have some data which consists of time series for a number of sites. It appears that there is not much autocorrelation in the data and I have fitted a cubic for each site using lm. I would like to obtain a lattice plot with one panel for each

Re: [R] lattice/xyplot: plotting 4 variables in two panels - can this be done?

2006-08-29 Thread Deepayan Sarkar
On 8/29/06, Søren Højsgaard [EMAIL PROTECTED] wrote: Hi, I would like to create a plot of y1,y2,y3,y4 against x for several subjects such that y1 and y2 are plotted against x in one panel and y3 and y4 against x in another panel. Thus if there are 3 subjects I should end up with 6 panels.

Re: [R] xyplot with different symbols and colors?

2006-08-25 Thread Deepayan Sarkar
On 8/25/06, Sebastian P. Luque [EMAIL PROTECTED] wrote: On Fri, 25 Aug 2006 17:51:24 +0200, Stefan Grosse [EMAIL PROTECTED] wrote: Dear List, I try to make a xyplot with different colors and symbols, I came this far: library(DAAG)

Re: [R] xyplot tick marks and line thickness

2006-08-24 Thread Deepayan Sarkar
On 8/24/06, Gabor Grothendieck [EMAIL PROTECTED] wrote: Look through the output of trellis.par.get() for the right parameters or when all else fails use grid (which we use below for the box around the panel since I could not locate the parameter): library(lattice) library(grid) x - 1:12 g

Re: [R] Lattice package par.settings/trellis.par.settings questions

2006-08-18 Thread Deepayan Sarkar
On 8/17/06, Debarchana Ghosh [EMAIL PROTECTED] wrote: Hi All, I'm trying to modify some of the default graphic parameters in a conditional histogram. While I was able to change the default grey background to white, I couldn't change the axis.font or the xlab font. The default background is

Re: [R] Lattice package par.settings/trellis.par.settings questions

2006-08-18 Thread Deepayan Sarkar
On 8/17/06, Anupam Tyagi [EMAIL PROTECTED] wrote: Please read about lattice.par.settings, and not trellis.par.settings. Trellis is in S/S-plus. As far as I know, there's no such thing as lattice.par.settings. ``Trellis''-compatible things in the lattice package have the same names as the

Re: [R] adding multiple fitted curves to xyplot graph

2006-08-16 Thread Deepayan Sarkar
On 8/16/06, GOUACHE David [EMAIL PROTECTED] wrote: Hello RHelpers, This may already have been answered, but despite days of scouring through the archives I haven't found it. My goal is to add multiple fitted curves to a plot. An example data set (a data frame named df in following code) is:

Re: [R] Lattice barchart with different fill pattern

2006-08-14 Thread Deepayan Sarkar
On 8/14/06, Rafael Duarte [EMAIL PROTECTED] wrote: Dear list, I am new to lattice plots. I want to make a barchart with 10 and more levels. I need to use a grey scale for printing purposes. The problem is that with 10 or more levels in factors it is very difficult to distinguish each level

Re: [R] index.cond in xyplot

2006-08-09 Thread Deepayan Sarkar
On 8/9/06, Taka Matzmoto [EMAIL PROTECTED] wrote: Dear R-users I have 5 dependent variables (y1 to y5) and one independent variable (x) and 3 conditioning variables (m, n, and 0). Each of the conditioning variables has 2 levels. I created 2*4 panel plots. xyplot(y1+y2+y3+y4+y5 ~ x |

Re: [R] ggplot facet label font size

2006-08-06 Thread Deepayan Sarkar
On 8/3/06, Walker, Sam [EMAIL PROTECTED] wrote: This works OK, but there is some extra spacing between the panels, the top axis and the strip on the top, and the left labels and panel. How can I remove these extra spaces? This turns out to be surprisingly easy (surprising to me at least):

Re: [R] Beamer and Sweave

2006-08-06 Thread Deepayan Sarkar
On 8/6/06, Michael Kubovy [EMAIL PROTECTED] wrote: Dear R-helpers, Here is a minimal .Rnw file which shows that builds do not work in frames that contain chunks of verbatim code: \documentclass[]{beamer} \author{} \date{} \title{Title} \begin{document}

Re: [R] scatter plot with axes drawn on the same scale

2006-07-28 Thread Deepayan Sarkar
On 7/28/06, Ben Bolker [EMAIL PROTECTED] wrote: Sundar Dorai-Raj sundar.dorai-raj at pdf.com writes: Try: plot(x, y, asp = 1) --sundar or eqscplot from the MASS package. or library(lattice) xyplot(y ~ x, aspect = iso) -Deepayan

Re: [R] trellis.focus with postscript device

2006-07-19 Thread Deepayan Sarkar
On 7/19/06, Soukup, Mat [EMAIL PROTECTED] wrote: Hello. First: R 2.3.1 on Windows XP. I am trying to add information (sample size) to the Trellis strips which I am successful using the trellis.focus function with the default Windows device. However, I typically use the postscript device as

Re: [R] Access to conditioning values in xyplot

2006-07-13 Thread Deepayan Sarkar
for the considered panel. This solution is based on hints given to me by Deepayan Sarkar, it relies on the use of packet.number and panel.number: xyplot(n ~ cg | di, data = myData, scale = list(y = free, x = free), groups = bloc, as.table = T, xlab = Cg

Re: [R] Setting the colors of lines in a trellis plot...

2006-07-10 Thread Deepayan Sarkar
On 7/10/06, Jamieson Cobleigh [EMAIL PROTECTED] wrote: With some help from those with expertise on this list, I managed to produce a plot using trellis that looked like I wanted it to look. Now, I need to take the same plot and make the lines on it color, but I want to specify the color for

Re: [R] dotplot (lattice) with panel.segments and groups

2006-07-07 Thread Deepayan Sarkar
On 7/7/06, Sebastian Luque [EMAIL PROTECTED] wrote: Hi, The following produces almost exactly what I needed. The problems are that the 'panel.dotplot' call (commented) generates the error 'Error in NextMethod([) : argument subscripts is missing, with no default'. It's just as it says:

Re: [R] dotplot (lattice) with panel.segments and groups

2006-07-07 Thread Deepayan Sarkar
On 7/7/06, Gabor Grothendieck [EMAIL PROTECTED] wrote: Could you explain what panel.groups= does and what the difference is between panel.groups= and panel= ? In ?xyplot it just says: panel.groups: useful mostly for 'xyplot' and 'densityplot'. Applies when 'panel' is

Re: [R] densityplot and panel.groups

2006-07-06 Thread Deepayan Sarkar
On 7/6/06, Ken Beath [EMAIL PROTECTED] wrote: I am trying to plot multiple densityplots on each panel, and using panel.groups to do some additional plotting (not included in the example) as in this example. library(lattice) thedata - data.frame(x=rnorm(1200),class=rep(1:3,each=200,times=2),

Re: [R] coloring individual points in lattice xyplot

2006-07-05 Thread Deepayan Sarkar
)), type = types, panel = mypanel) On 7/4/06, Deepayan Sarkar [EMAIL PROTECTED] wrote: On 7/4/06, Gabor Grothendieck [EMAIL PROTECTED] wrote: I can get the types to work or the colors but not both: Sorry if I wasn't clear, but I didn't mean that you could use panel.superpose[.2] to do

Re: [R] coloring individual points in lattice xyplot

2006-07-05 Thread Deepayan Sarkar
On 7/5/06, Gabor Grothendieck [EMAIL PROTECTED] wrote: On 7/5/06, Gabor Grothendieck [EMAIL PROTECTED] wrote: On 7/5/06, Deepayan Sarkar [EMAIL PROTECTED] wrote: On 7/4/06, Gabor Grothendieck [EMAIL PROTECTED] wrote: OK. It looks like I need to go to the lower level llines and lpoints

Re: [R] coloring individual points in lattice xyplot

2006-07-04 Thread Deepayan Sarkar
On 7/4/06, Gabor Grothendieck [EMAIL PROTECTED] wrote: If I wish to color groups in xyplot I can do this: library(lattice) x - 1:10 y - cbind(x, x+1) xyplot(y ~ rep(x,2), group = col(y), col = 1:2) How do I color different points differently within a group. For example, I

Re: [R] coloring individual points in lattice xyplot

2006-07-04 Thread Deepayan Sarkar
), panel = function(x, y, subscripts, groups, ...) panel.xyplot(x, y, col = cols[subscripts], ...) ) On 7/4/06, Gabor Grothendieck [EMAIL PROTECTED] wrote: On 7/4/06, Deepayan Sarkar [EMAIL PROTECTED] wrote: On 7/4/06, Gabor Grothendieck [EMAIL PROTECTED] wrote: If I wish

Re: [R] Trellis.par.set/ family/ global change font?

2006-06-29 Thread Deepayan Sarkar
On 6/29/06, McClatchie, Sam (PIRSA-SARDI) [EMAIL PROTECTED] wrote: Background: OS: Linux Ubuntu Dapper 6.06 release: R 2.3.1 editor: GNU Emacs 21.4.1 front-end: ESS 5.2.3 - Colleagues I have a rather complicated trellis plot that a journal editor has

Re: [R] y-axis break with lattice graphics

2006-06-28 Thread Deepayan Sarkar
On 6/28/06, Jason Curole [EMAIL PROTECTED] wrote: Hello all, I am trying to incorporate a y-axis break (i.e. the lightning bolt style) in an xyplot (using panel.superpose). I have tried to do this manually using panel.line, but panel.line will not draw to the left of the y-axis (or on the

Re: [R] How to generate a figure using par( ) with some densityplot( )'s

2006-06-26 Thread Deepayan Sarkar
On 6/26/06, Sundar Dorai-Raj [EMAIL PROTECTED] wrote: Amir Safari wrote: Hi Dear R users, For a pair plotting, usaully we use par( ) function. Apparently it does not work anywhere. I want to have 3 plots in a single figure, like this: par(mfrow=c(3,1)) densityplot( a)

Re: [R] How to generate a figure using par( ) with some densityplot( )'s

2006-06-26 Thread Deepayan Sarkar
On 6/26/06, Sundar Dorai-Raj [EMAIL PROTECTED] wrote: Deepayan Sarkar wrote: On 6/26/06, Sundar Dorai-Raj [EMAIL PROTECTED] wrote: Amir Safari wrote: Hi Dear R users, For a pair plotting, usaully we use par( ) function. Apparently it does not work anywhere. I want

<    1   2   3   4   5   6   7   8   9   >