Re: [R] lattice and display

2002-12-19 Thread Deepayan Sarkar
On Thursday 19 December 2002 08:33 am, Nolwenn Le Meur wrote: > Hi, > > I have just started using lattice and it looks great. But I already have 3 > questions about xyplot display. > --- >- - > 1

Re: [R] New versions of lattice and grid

2002-12-19 Thread Deepayan Sarkar
On Thursday 19 December 2002 01:35 pm, [EMAIL PROTECTED] wrote: > I just ran package update on my Win2000 R-1.6.1 and it installed new > versions of lattice and grid (0.6-7 and 0.7-3 respectively). Then I ran > demo(lattice) and noticed that the last plot, which is supposed to > illustrate math ex

Re: [R] New versions of lattice and grid

2002-12-19 Thread Deepayan Sarkar
On Thursday 19 December 2002 04:30 pm, Peter Dalgaard BSA wrote: > Deepayan Sarkar <[EMAIL PROTECTED]> writes: > > two, the problem seems to be a small change in grid.text. The older > > version seems to work: > > > > grid.text <- function(label,

Re: [R] Lattice: Plotting two densities on the same plot(s)?

2003-01-07 Thread Deepayan Sarkar
On Tuesday 07 January 2003 09:45 pm, Olivia Lau wrote: > I am trying to plot two density lines on the same graph. Using the > functions on the base package, I would go: > > plot(density(x), col = 1) > lines(density(y), col = 2) > > And I get two distinct (one-bump) density lines. When I try to do

Re: [R] lattice default theme

2003-01-09 Thread Deepayan Sarkar
On Wednesday 08 January 2003 11:27 am, [EMAIL PROTECTED] wrote: > I have a feeling that this was already discussed here, but I cannot > remember the outcome of the discussion. > > I would like to have the col.whitebg theme as a default and I cannot figure > out how to do it. Functions like lset or

Re: [R] density plot - beginner's question

2003-01-13 Thread Deepayan Sarkar
On Monday 13 January 2003 05:22 pm, Saurav Pathak wrote: > Hi, > > I am trying to plot densities given on a two dimensional grid. My > data is in the an external file, and is arranged in three columns: > x, y, density > > how may i get a plot of this? i would like to get (1) a three > dimensional

Re: [R] Why are default sizes of plotting characters different?

2003-01-14 Thread Deepayan Sarkar
On Tuesday 14 January 2003 09:20 pm, Patrick Connolly wrote: > I had occasion to use panel.superpose to draw points in a lattice > plot, and chose to set the size to 1.1 using trellis.par.set(). I > also wished to add some other plotting characters which I did with > grid.points. To get them look

Re: [R] [lattice] lines for stripplot (like dotplot) or jitter for dotplot?

2003-01-15 Thread Deepayan Sarkar
On Wednesday 15 January 2003 09:41 am, Michael A. Miller wrote: > I'd like to use stripplot for some plots because I want to use > the jitter parameter. On the other hand, I'd like to use dotplot > because I'd like to have the horizontal lines that it includes. > dotplot doesn't have a jitter opti

Re: [R] lattice: cloud: aspect ratio, labels, vertical lines

2003-01-15 Thread Deepayan Sarkar
On Wednesday 15 January 2003 05:15 am, Wolfram Fischer wrote: > I am interested to know how to make for clouds: > - aspect ratio = 1 > - labels attached to points > - vertical lines from the points to the x/y base plane > > I tried: > t = c( 'A', 'B', 'C', 'D' ) > x = c( 100, 0, 200, 100

Re: [R] X11 device now needs to be explicitly started?

2003-01-15 Thread Deepayan Sarkar
On Wednesday 15 January 2003 07:35 pm, Patrick Connolly wrote: > _ > platform i686-pc-linux-gnu > arch i686 > os linux-gnu > system i686, linux-gnu > status > major1 > minor6.2 > year 2003 > month01 > day 10 > language R > > > Until this version, I've not h

Re: [R] X11 device now needs to be explicitly started?

2003-01-16 Thread Deepayan Sarkar
On Thursday 16 January 2003 02:10 pm, Patrick Connolly wrote: > On Wed, 15-Jan-2003 at 10:47PM -0600, Deepayan Sarkar wrote: > |> On Wednesday 15 January 2003 07:35 pm, Patrick Connolly wrote: > |> > _ > |> > platform i686-pc-linux-gnu > |> > arc

Re: [R] contour plot

2003-01-17 Thread Deepayan Sarkar
On Friday 17 January 2003 12:44 pm, [EMAIL PROTECTED] wrote: > Dear all > > I am fighting with contour plot. > > I have a continuous response and three factors. The formula argument in > function contourplot() does not like the factors. What I got is really > nonsense, loads of squares in the plot

Re: [R] Adding reference lines to xyplot

2003-01-20 Thread Deepayan Sarkar
On Monday 20 January 2003 02:37 pm, Rob Balshaw wrote: > I'm trying to add a set of reference lines to a multipanel xyplot > > xyplot(y ~ x | Visit, > panel = function(x, y, ...){ > panel.xyplot(x, y, ...) > abline(v = c(0.5, 1)) > }) > > However, the reference lines are dif

Re: [R] Graphics related questions

2003-01-21 Thread Deepayan Sarkar
On Tuesday 21 January 2003 02:19 pm, Nirmala Ravishankar wrote: > While using xyplot or barchart, how does on move the x or y axis? I am > trying to plot ratios ranging from 0.77 to 1.3 in a bargraph, with the y > axis at x = 1. I want ratios greater than 1 to appear as on the right side > of the

Re: [R] newbie: data frame to vector

2003-01-21 Thread Deepayan Sarkar
On Tuesday 21 January 2003 03:47 pm, Eric Peterson wrote: > Sorry, but I'm very new to R. I'm trying to figure out how to convert a > column from a data frame to a vector. More specifically, I have read in a > comma separated value table which contains a number of variables in > columns, plots in

Re: [R] problem with srt vector in xyplot {lattice}

2003-01-24 Thread Deepayan Sarkar
On Friday 24 January 2003 10:54 am, Wolfram Fischer - Z/I/M wrote: > [ R 1.6.1 ] > > PROBLEM > The plot of the appended code does produce > a postscript file which is not interpretable > by gv under Linux. The srt vector has several NA's. x11() does not draw these, which may or may no

Re: [R] different plot symbols according to a factor

2003-01-24 Thread Deepayan Sarkar
On Friday 24 January 2003 02:50 pm, Frank Mattes wrote: > Dear R list subscriber, > > I'm hoppiing my question didn't come up so far. I try to do somthing simple > > a<-c(1,4,5,2,7,34,56,78,76,54) > b=c(a<-c(1,4,5,2,7,34,56,78,76,54) ??? > c<-c(0,0,0,0,0,1,1,1,1,1) > > I would like to get a sca

Re: [R] help with Tukey Mean-Difference Plot

2003-08-15 Thread Deepayan Sarkar
"A Tour of Trellis Graphics" ( http://cm.bell-labs.com/cm/ms/departments/sia/ project/trellis/software.writing.html ) says that: `The tmd function computes a Tukey mean and difference plot. It is unusual since it takes as an argument the output of one of the other plotting functions and it p

Re: [R] collapse argument on paste

2003-08-17 Thread Deepayan Sarkar
On Sunday 17 August 2003 12:50, Gabor Grothendieck wrote: > One gets a different response when abbreviating collapse= in > paste? In the second case, it appears to be acting as if " + " is just > another argument to be pasted. You can't abbreviate the collapse argument. In general, anything after

Re: [R] graphics device

2003-08-21 Thread Deepayan Sarkar
On Thursday 21 August 2003 05:04, Uwe Ligges wrote: > Brunschwig, Hadassa {PDMM~Basel} wrote: > > Hi all, > > > > well i know this was probably already posted many times, couldnt find > > anything about it though. This is a beginner problem. I have a Trellis > > plot which is very large, i.e. it on

Re: [R] levelplot behaviour for panel with constants

2003-08-21 Thread Deepayan Sarkar
Looks like a bug. I'll investigate. Thanks, Deepayan On Thursday 21 August 2003 07:42, Edzer J. Pebesma wrote: > In the example: > > x = rep(c(0,0,1,1),4) > y = rep(c(0,1,0,1),4) > z = c(1,0,1,0,0,0,1,1,0,1,0,0,1,1,1,1) > f = as.factor(c(rep("a",4),rep("b",4),rep("c",4),rep("d",4))) > levelplot

Re: [R] levelplot behaviour for panel with constants

2003-08-21 Thread Deepayan Sarkar
On Thursday 21 August 2003 07:42, Edzer J. Pebesma wrote: > In the example: > > x = rep(c(0,0,1,1),4) > y = rep(c(0,1,0,1),4) > z = c(1,0,1,0,0,0,1,1,0,1,0,0,1,1,1,1) > f = as.factor(c(rep("a",4),rep("b",4),rep("c",4),rep("d",4))) > levelplot(z~x+y|f,data.frame(x=x,y=y,z=z,f=f)) > > I noted that th

Re: [R] Substitute in legend

2003-08-22 Thread Deepayan Sarkar
On Friday 22 August 2003 16:35, Peter Dalgaard BSA wrote: > [EMAIL PROTECTED] writes: > > I tried to use substitute in legend as follows: > > > > pval <- 0.04 > > plot(0) > > legend(1,0.5,substitute(hat(theta) == p, list(p = pval))) > > > > For some reason the legend is repeated 3 times. > > > > An

Re: [R] help--kernel distribution dynamics

2003-08-23 Thread Deepayan Sarkar
On Saturday 23 August 2003 10:36, Eugene Salinas wrote: > Deall all, > > I'm just learning R, but unfortunately I need to > urgently do a rather more complex task so I need some > help. I have just learnt the very basics a few days > ago and am not ready yet to deal with panels and > kernel densiti

Re: [R] help--kernel distribution dynamics

2003-08-23 Thread Deepayan Sarkar
On Saturday 23 August 2003 13:02, Eugene Salinas wrote: [...] > Hi, Thanks a lot. This seems like what I want to do. I > don't know all the syntax yet so just a > clarification... > > Is the []n = 100)$y there in order to condition > on y which is the year and derive the conditional > kernel d

Re: [R] explanation of lm's coefficients

2003-08-23 Thread Deepayan Sarkar
lm() implicitly assumes the presence of the intercept term in the model, i.e., > lm(data ~ ftr) is actually fitting > lm(data ~ 1 + ftr) You can override this by doing > lm(data ~ ftr - 1) You can always check the actual model being fitted by extracting the model matrix: > model.matrix(d

Re: [R] levelplot behaviour when "at" cuts the z range

2003-08-29 Thread Deepayan Sarkar
On Friday 29 August 2003 05:22, Edzer J. Pebesma wrote: > Consider the following examples: > > library(lattice) > x = c(1,1,2,2) > y = c(1,2,1,2) > z = 1:4 > levelplot(z~x+y,at=c(.5, 1.5, 2.5, 3.5, 4.5)) # correct > levelplot(z~x+y,at=c(.5, 1.5, 2.5)) # ? > > The second plot is clearly in

Re: [R] Lattice plot questions

2003-08-29 Thread Deepayan Sarkar
Let's consider this simulated data: foo <- data.frame(resp = do.call("c", lapply(as.list(rep(6, 12)), function(x) sort(rnorm(x, week = rep(2*0:5, 12), id = factor(rep(1:12, each = 6))) Does the following give you what you want ? xyplot(r

Re: [R] lattice question

2003-08-29 Thread Deepayan Sarkar
The typical graphical representation for shingles is via plot.shingle, e.g. a <- equal.count(rnorm(100)) plot(a) I'm not sure how you wish to represent this information inside the histogram plot itself, but everything you need should be available inside the strip function. For example, #

Re: [R] How to avoid automatic coercion to factor?

2003-09-02 Thread Deepayan Sarkar
>From ?data.frame: Character variables passed to 'data.frame' are converted to factor columns unless protected by 'I'. If a list or data frame or matrix is passed to 'data.frame' it is as if each column had been passed as a separate argument. See the Examples section for an e

Re: [R] llines and NA

2003-09-03 Thread Deepayan Sarkar
This is a bug in grid.lines. A possible workaround is to use your own function that handles this using grid.segments (or lsegments). On Wednesday 03 September 2003 09:09 am, Bodo Ahrens wrote: > Hallo helpers, > > I tried to use "llines" of package lattice in e.g. > > levelplot(z~x+y,xyz, at=c.a

Re: [R] lattice question--- different ylim

2003-09-04 Thread Deepayan Sarkar
For example (variations are possible), y <- 100 * runif(400) a <- gl(4, 100) x <- gl(3, 7, 400) library(lattice) bwplot(y ~ x | a, scales = list(y = "free"), ylim = list(c(0, 100), c(0, 200), c(0, 100), c(0, 200))) (Assuming you have up to date versions of R and lattice). On Thursday

Re: [R] Putting regression lines on SPLOM

2003-09-04 Thread Deepayan Sarkar
You can't do it in that sequence, and whether you can do it at all depends on exactly what you mean when you say that the data used for the regressions are not the same as those used for the plots. The typical way would be to do splom(DF, panel = function(x, y, ...) { panel.xy

Re: [R] Putting regression lines on SPLOM

2003-09-04 Thread Deepayan Sarkar
.) { panel.xyplot(log(1 + x), log(1 + y), ...) ok <- (x > 0) & (y > 0) fm <- lm( log(y[ok]) ~ log(x[ok]) ) panel.abline(fm, ...) }) Deepayan > > Thanks! > Ted. > > On 04-Sep-03 Deepayan Sarkar wrote: > > You

Re: [R] Putting regression lines on SPLOM

2003-09-05 Thread Deepayan Sarkar
On Friday 05 September 2003 10:04 am, Ted Harding wrote: > Another query: > > I'm now trying to have the x- and y-axes all on the same scale > (0:15) in every panel, whereas the default behaviour of splom > is to scale them according to the ranges of the individual > variables in each panel. > > So

Re: [R] Putting regression lines on SPLOM

2003-09-05 Thread Deepayan Sarkar
Oops, forgot the attachment. On Friday 05 September 2003 12:45 pm, Deepayan Sarkar wrote: > The prepanel function returns separate limits for x and y axes. This does > not translate to splom, since each limit is used on both the x and y axes. > However, it is natural to add a new

Re: [R] Need help with cluster analysis of amino acid sequences

2003-09-07 Thread Deepayan Sarkar
The bioconductor project [1] might be of interest to you, and its mailing list [2] is probably more appropriate for your question. [1] http://www.bioconductor.org [2] https://www.stat.math.ethz.ch/mailman/listinfo/bioconductor HTH, Deepayan On Sunday 07 September 2003 12:28, Peter Hornbeck wr

Re: [R] Persp Plot

2003-09-08 Thread Deepayan Sarkar
If they are non-intersecting planes, wireframe() from the lattice package _may_ help you. See example(wireframe). [Warning: the algorithm is quite crude (and slow) and doesn't always work.] On Monday 08 September 2003 10:48, Mark Lamias wrote: > I am trying to graph two planes on the same graph

Re: [R] How limits are set in a scales list

2003-09-08 Thread Deepayan Sarkar
On Monday 08 September 2003 23:36, Patrick Connolly wrote: > I have a lattice plot that has 4 pages with 4 columns and 8 rows per > page. I wish to have the rows use a separate x-axis since their > ranges are quite different, but I wish to have those same limits used > on each page. > > By setting

Re: [R] lattice.xyplot: adding grid lines

2003-09-09 Thread Deepayan Sarkar
On Tuesday 09 September 2003 04:49, Marc Mamin wrote: > Hallo, > > I'd like to add grid lines to a lattice graph having 2 series of Y data. > > See these 2 examples: > > > > data(iris) > > [1] > xyplot(Sepal.Length + Sepal.Width ~ Petal.Length , > data = iris, allow.multiple = TRUE, sca

Re: [R] lattice plot - portrait / landscape

2003-09-09 Thread Deepayan Sarkar
On Tuesday 09 September 2003 05:48, Andrew C. Ward wrote: > Dear Manbub, > > I assume that you mean you want the boxes to be vertical > rather than horizontal (which is the default). Compare the > following two uses of bwplot: >data(singer) >bwplot(voice.part ~ height, data=singer, xlab="He

Re: [R] lattice.xyplot: adding grid lines

2003-09-09 Thread Deepayan Sarkar
Sorry, that's what you get when you don't run your code before sending it. Should be panel.superpose instead of panel.xyplot, since you want a grouped display. e.g., xyplot(Sepal.Length + Sepal.Width ~ Petal.Length , data = iris, allow.multiple = TRUE, scales = "same",type="l", pa

Re: [R] ploting 2 variables in a lattice xyplot

2003-09-09 Thread Deepayan Sarkar
On Tuesday 09 September 2003 10:35 am, Douglas Bates wrote: > Ernesto Jardim <[EMAIL PROTECTED]> writes: > > Hi, > > > > I want to plot 2 variables (confidence intervals) in a single xyplot. I > > have a dataframe with variables Yup, Ylo, X and Z and I want to have a > > xyplot with both variables

Re: [R] Customised legend in lattice

2003-09-11 Thread Deepayan Sarkar
On Wednesday 10 September 2003 19:23, [EMAIL PROTECTED] wrote: > ##--- Not working part--XXX > update(plot4, key = list(corner=c(0,1), x=0.65, y=0.35, > lines=list(c(1:2),col="black",lwd=1,lty=c(1:2)), >

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

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

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

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

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

2003-09-16 Thread Deepayan Sarkar
On Tuesday 16 September 2003 23:51, Jason Turner wrote: > On Wed, 2003-09-17 at 16:31, Deepayan Sarkar wrote: > ... > > > Is the date class standard enough to warrant including a check for it in > > lattice ? > > I've never used it myself, but the lack of POSIXct s

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

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

Re: [R] Suming logical vectors

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

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

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

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

2003-09-18 Thread Deepayan Sarkar
On Wednesday 17 September 2003 08:51, David James wrote: > Prof Brian Ripley wrote: > > On Tue, 16 Sep 2003, Deepayan Sarkar wrote: > > > Is the date class standard enough to warrant including a check for it > > > in lattice ? > > > > I don't thin

Re: [R] lattice boxplot graphical parameters

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

Re: [R] Reverse axis in xyplot()

2003-09-18 Thread Deepayan Sarkar
On Thursday 18 September 2003 17:22, Arni Magnusson wrote: > Thanks Roger, for pointing out the pretty() function. It's not > cross-referenced much in the documentation... Your example is not a > trellis one, but following the same approach: > > xyplot(-y~x, scales=list(y=list(at=pretty(-y), > lab

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

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

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

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

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

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

Re: [R] R memory and CPU requirements

2003-10-16 Thread Deepayan Sarkar
On Thursday 16 October 2003 17:59, Alexander Sirotkin \[at Yahoo\] wrote: > Thanks for all the help on my previous questions. > > One more (hopefully last one) : I've been very > surprised when I tried to fit a model (using aov()) > for a sample of size 200 and 10 variables and their > interactions

Re: [R] help with legend()

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

Re: [R] R memory and CPU requirements

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

Re: [R] tick marks and barchart

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

Re: [R] Oceanographic lattice plots?

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

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

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

Re: [R] lattice error

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

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

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

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

2003-10-20 Thread Deepayan Sarkar
gt; trellis.device(win.metafile, > > + file = "//.../plot1.wmf", > + width = 8.5, height = 6.25) > > > lset( list( background = list(col = "white"))) > > I get _no_ errors, and xyplot(...) creates the > appropriate windows metafile. > > -dav

Re: [R] Lattice: no grid name space

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

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

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

Re: [R] grid: dividing units by numbers

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

Re: [R] barchart in lattice

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

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

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

Re: [R] Levelplot and NAs

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

Re: [R] Problems installing lattice

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

Re: [R] grid packages since R-1.7.1

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

Re: [R] Key for custom lattice panel function

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

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

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

Re: [R] Multiple xyplot on a page

2003-01-31 Thread Deepayan Sarkar
See ?print.trellis On Friday 31 January 2003 11:50 am, Yang, Richard wrote: > Dear all; > > I have a set of 5 xyplots each with 8 panels and wish to place 2 on > a letter-sized page. I tried using pdf() to specify paper size and plot > > size: > >pdf(file = "fig1b.pdf", paper = "letter", on

Re: [R] floating point question

2003-01-31 Thread Deepayan Sarkar
Might have something to do with .Machine$double.eps on the respective machines. >From help(.Machine), double.eps: the smallest positive floating-point number `x' such that `1 + x != 1'. It equals `base^ulp.digits' if either `base' is 2 or `rounding' is 0; otherwise, it is

Re: [R] Mtext and xyplot

2003-02-03 Thread Deepayan Sarkar
On Monday 03 February 2003 03:47 pm, Yang, Richard wrote: > Dear all; > > I wish to create a graphic object combing an xyplot() and an mtext(). You cannot. xyplot() uses grid for all its graphics, and grid graphics cannot be used in conjunction with base R graphics functions. > My > code looks

Re: [R] to modify a vector

2003-02-07 Thread Deepayan Sarkar
On Saturday 08 February 2003 12:41 am, Mitsuo Igarashi wrote: > Hi All. > > I am quite a newbie to R. > This is a basic question. > > I like to modify elements of a vector. > For Example: > a1 <- c(1,2,3,4,3,5) > > TThe following program sentence does not work but the intention is; > > if (a1==3)

Re: [R] Wireframe (lattice) questions

2003-02-09 Thread Deepayan Sarkar
On Sunday 09 February 2003 05:19 pm, Christopher Adolph wrote: > I have a few questions on formatting wireframe plots: > > 1. How can I remove (or at least "white-out") the border on the plot? > (I.e., the 2-d box around the whole plotting area, not the 3-d cube). I'm > willing to hack the code i

Re: [R] How "else" works

2003-02-11 Thread Deepayan Sarkar
On Tuesday 11 February 2003 04:40 pm, [EMAIL PROTECTED] wrote: > I have what is likely to be a simple question about the else keyword. > > The usage in the help pages is as follows: > > if(cond) cons.expr else alt.expr > > I would expect to be able to use it in the following way as well: >

Re: [R] position of an element in a vector

2003-02-13 Thread Deepayan Sarkar
?which On Thursday 13 February 2003 03:40 pm, Jason Bond wrote: > Hello. Sorry for the elementary post. I've looked through the > documentation, but can't seem to find a function which allows one to > extract the position of an element within a list...for example the position > of the element 4

Re: [R] Levelplot problem (lattice)

2003-02-13 Thread Deepayan Sarkar
On Thursday 13 February 2003 06:08 pm, Christopher Adolph wrote: > I'm working with a levelplot in which the x's are unequally spaced: > > x = {.8,.85,.9,.91,.92,.93,.94,.95,.96,.97,.98,.99,1} > > It seems this results in a "gap" in the plot in the vicinity of x = 8.75 > to 8.85 or so. I assume th

Re: [R] function editing?

2003-02-14 Thread Deepayan Sarkar
See ?edit If you use ESS, C-c C-d. On Friday 14 February 2003 04:07 pm, Joshua Gramlich wrote: > Is there a way to edit user defined functions once they've been > created? For instance, I've a simple function that plots a table, but > I'd like to go back and add more parameters to the barplot c

Re: [R] using locator with xyplot() result

2003-02-14 Thread Deepayan Sarkar
No. On Friday 14 February 2003 04:37 pm, Vadim Ogranovich wrote: > Dear R-Users, > > Is there a way to interactively get location of a point on a graph produced > by xyplot() of lattice package (similar to what locator() does with a > regular plot)? > > Thanks, Vadim

Re: [R] how to turn axis labels for trellis/dotplot

2003-02-21 Thread Deepayan Sarkar
On Friday 21 February 2003 08:02 am, Thomas Gerds wrote: > hi, > > it occurs quite naturally that groupnames have so many characters that > they overlap as horizontally printed labels for the xaxis in a > dotplot. is it possible to turn ('par(las=1)') the (x)axis-labels in a > dotplot? See the '

Re: [R] trellis.datasets help (lattice ?)

2003-02-23 Thread Deepayan Sarkar
Are you talking about lattice ? If so, help(singer) brings up the following: trellis.datasets package:lattice R Documentation Data Sets in the Lattice library Description: These data sets are inclu

Re: [R] lattice and fitted function error

2003-02-28 Thread Deepayan Sarkar
You need to use llines instead of lines (lines doesn't produce any output with grid graphics). Quoting "Bliese, Paul D MAJ WRAIR-Wash DC" <[EMAIL PROTECTED]>: > Platform: WIN2000 > Version of R: 1.6.2 > > I'm interested in plotting fitted values in a trellis xyplot. I believe > the > follow

Re: [R] Embed R in other applications

2003-03-03 Thread Deepayan Sarkar
See http://www.math.montana.edu/Rweb/ On Monday 03 March 2003 11:00 pm, Bai Yan wrote: > Hello all, > > I want to create webpages which can display the R results. The first step > is essentially getting input from client, generating graphics and > returning a page containing those images. > > Wha

Re: [R] Getting rid of "outer box" in cloud()

2003-03-08 Thread Deepayan Sarkar
On Saturday 08 March 2003 04:40 pm, Craig Aumann wrote: > I'm using the "cloud()" function to plot some data, but > cloud (and also wireframe) put an external box around the entire plot. > I can't figure out how to get rid of this external box. How do I turn it > off? You can't currently. There

Re: [R] FIX: pscales=list(...) and splom

2003-03-08 Thread Deepayan Sarkar
On Saturday 08 March 2003 08:31 am, Jens Scheidtmann wrote: > Dear R Users, > > When plotting with "splom" I tried to use the pscales=list(...) feature Well, looks like you are the first person ever to actually use this feature :-) > Unfortunately it didn't work at all. Instead the scales always

Re: [R] graphics backgrounds from gray to white in png()

2003-03-10 Thread Deepayan Sarkar
You need to change the (lattice) background setting AFTER starting the png() device (lattice maintains separate settings for different devices). If you use png() to start subsequent devices, the same settings will be re-used. (The alternative is to use trellis.device(), which is the more trad

Re: [R] R-Graphics: Scaling axis

2003-03-12 Thread Deepayan Sarkar
On Tuesday 11 March 2003 05:00 pm, Till Baumgaertel wrote: > Hi, > > how can I scale the x- and y-axis of a "plot" to the same scale? > > My problem: The following command sequence produces the plot in a square. > What I want is the x-axis to be 5 times as wide (measured e.g. in pixels) > as the y-

Re: [R] scoping rules

2003-03-16 Thread Deepayan Sarkar
On Sunday 16 March 2003 09:16 pm, Robin Hankin wrote: > Hi > > I recently found a bug that was isomorphic to the following: > > ll1 <- 2 > increment <- function(x) > { > l11 <- 1 You are not really using this variable (l11, not ll1) anywhere. Is that a typo? What exactly do you want to happen ?

Re: [R] manipulating "..." inside a function

2003-03-25 Thread Deepayan Sarkar
On Friday 21 March 2003 02:36 pm, Liaw, Andy wrote: > Dear R-help, > > Can some one tell me how to do the following (if it's possible)? > > Suppose I have a function like this: > > f <- function(x, y, ...) { > ## some code > g(x, y, ...) >## some more code > } Why not (in the context y

Re: [R] "ordered dotplot"

2003-03-29 Thread Deepayan Sarkar
For example ? On Saturday 29 March 2003 12:55 am, Fredrik Lundgren wrote: > Hello, > I'm using linux R 1.6.2 and have a named vector (double) which I want too > plot with lattice and dotplot. I want both names and values ordered by the > vector. In S-Plus this was easy in R I fail. > > Sincerely

Re: [R] Lattice: Saving multiple plots

2003-03-30 Thread Deepayan Sarkar
On Sunday 30 March 2003 03:30 pm, Peter Ho wrote: > Hi lattice users, > > Is there a way to automatically save trellis plots , when "layout" is > used to produce graphs on more than one page (graph window). In the > example below, I have 4 graphs on each of 4 pages. I want to save each > page se

Re: [R] trellis.graphic in for-loop

2003-04-04 Thread Deepayan Sarkar
On Friday 04 April 2003 12:04 am, [EMAIL PROTECTED] wrote: > Hi list, > > I am unsuccessfully trying to produce a serious of trellis barcharts from > within a for-loop. The barcharts work outside the loop. What am I missing? An explicit print() outside the barchart call. The result of barchart is

Re: box colours in lattice (was RE: [R] Strip location and gridcolour in Lattice)

2003-06-05 Thread Deepayan Sarkar
I'm still not completely sure what you are after, but if indeed you want to change the color of the rectangle borders, how about this ?: x <- rnorm(100) y <- rnorm(100) a <- factor(sample(1:4, 100, rep = T)) lset(list(axis.line = list(col = "grey"))) xyplot(y ~ x | a) (Make sure you have a re

Re: [R] scales in xyplot doesn't seem to work for x axis

2003-06-06 Thread Deepayan Sarkar
On Thursday 05 June 2003 06:41, Ernesto Jardim wrote: > Hi > > I'm doing a xyplot and I wand to reduce the number of tick marks in the > x axis. My x axis are month and I want to reduce the 12 tick marks to 4. > I used the scales argument but it doesn't seem to work, althougth it > works on y axis

  1   2   3   4   5   6   7   8   9   10   >