Re: [R] lattice question

2022-08-12 Thread Bert Gunter
I hit the wrong button, unfortunately, so others beside Naresh and Deepayan can safely ignore my "coda". On Fri, Aug 12, 2022 at 2:29 PM Bert Gunter wrote: > > As a private coda -- as it is unlikely to be of general interest -- > note that it is easy to do this without resorting to the layering

Re: [R] lattice question

2022-08-12 Thread Naresh Gurbuxani
This is the solution I was looking for. Thanks to Deepayan and Bert for sticking with me. Naresh Sent from my iPhone On Aug 12, 2022, at 8:02 AM, Deepayan Sarkar wrote:  On Thu, Aug 11, 2022 at 9:03 PM Naresh Gurbuxani mailto:naresh_gurbux...@hotmail.com>> wrote: Bert, Thanks for

Re: [R] lattice question

2022-08-10 Thread Naresh Gurbuxani
Deepayan, Thanks for providing a solution. While this is close to my goal, I want one more change. The line type (lty) should be the same for long and short. The line type should only change according to “name” group. So the the graph will have two line types (not four as in your

Re: [R] lattice question: removing strips

2014-02-11 Thread Gerrit Draisma
kri...@ymail.com Cc: r-help@r-project.org Subject: Re: [R] lattice question: removing strips Message-ID: 999135689.229399.1392034366300.javamail.apa...@mail21.abv.bg Content-Type: text/plain; charset=UTF-8 Dear Pascal, Thank You very much for Your reply. Here is a minimal working example

[R] lattice question: removing strips

2014-02-10 Thread Martin Ivanov
Dear lattice users, I am trying to produce a lattice graph with two conditioning variables. My problem is that I only want to show the strips for the levels of the second conditioning variable. I want to remove the strips for the levels of the first conditioning variable. I tried with the strip

Re: [R] lattice question: removing strips

2014-02-10 Thread Pascal Oettli
Hello, Please provide a commented, minimal, self-contained, reproducible code, as requested. Regards, Pascal On 10 February 2014 19:48, Martin Ivanov tra...@abv.bg wrote: Dear lattice users, I am trying to produce a lattice graph with two conditioning variables. My problem is that I only

Re: [R] lattice question: removing strips

2014-02-10 Thread Martin Ivanov
of an empty space for the missing f1 strips. Any suggestions? Best regards, Martin Оригинално писмо От: Pascal Oettli Относно: Re: [R] lattice question: removing strips До: Martin Ivanov Изпратено на: Понеделник, 2014, Февруари 10 12:56:21 EET Hello, Please provide

Re: [R] lattice question: removing strips

2014-02-10 Thread Duncan Mackay
Message- From: r-help-boun...@r-project.org [mailto:r-help-boun...@r-project.org] On Behalf Of Martin Ivanov Sent: Monday, 10 February 2014 22:13 To: Pascal Oettli Cc: r-help@r-project.org Subject: Re: [R] lattice question: removing strips Dear Pascal, Thank You very much for Your reply. Here

[R] lattice question: how to change the dot on boxplot to line

2012-12-10 Thread Ranjan Maitra
Hi, How does one change the dot for the median in a boxplot drawn using lattice? I have been looking at names(trellis.par.get()) [1] grid.pars fontsize background [4] panel.background clip add.line [7] add.text plot.polygon box.dot

Re: [R] lattice question: how to change the dot on boxplot to line

2012-12-10 Thread S Ellison
On 11 Dec 2012, at 03:05, Ranjan Maitra maitra.mbox.igno...@inbox.commailto:maitra.mbox.igno...@inbox.com wrote: How does one change the dot for the median in a boxplot drawn using lattice? Check your ?panel.bwplot help page. The online version at

Re: [R] lattice question: how to change the dot on boxplot to line

2012-12-10 Thread Duncan Mackay
Hi Try this (Deepayan gave me this in reply to a similar question several years ago) bwplot(voice.part ~ height, data=singer, xlab=Height (inches),pch = |, panel = function(x, y, ...) { panel.bwplot(x, y, ...) meds - tapply(x, y, median)

[R] Lattice question.

2009-03-29 Thread Rolf Turner
Hi. I am trying to do histograms in lattice, and I want to get both counts and percents in the same plot. To try to be clearer --- there are 3 levels to my factor; I'd like to get a 2 x 3 array of plots where the top row consist of histograms by counts and the bottom consists of (the

Re: [R] Lattice question.

2009-03-29 Thread Felix Andrews
Modifying your example... library(lattice) set.seed(42) XX - data.frame(y=runif(300,0,10),a=factor(sample(letters[1:3],300, TRUE,c(0.5,0.3,0.2 XX - rbind(XX,XX) XX$gps - rep(c(count,percent),each=300) print(histogram(~y|a*gps,as.table=TRUE,data=XX,

Re: [R] Lattice question.

2009-03-29 Thread Rolf Turner
Thanks very much for your input. On 30/03/2009, at 12:29 PM, Felix Andrews wrote: Modifying your example... library(lattice) set.seed(42) XX - data.frame(y=runif(300,0,10),a=factor(sample(letters[1:3],300, TRUE,c(0.5,0.3,0.2 XX - rbind(XX,XX)

Re: [R] lattice question: independent per-row or per-column scaling?

2009-01-23 Thread Deepayan Sarkar
On Mon, Jan 19, 2009 at 7:24 AM, René J.V. Bertin rjvber...@gmail.com wrote: Thanks for all the answers. I'll have a look at ggplot2. I'd seen the possibility to set panel-specific limits via ylim, but I was in fact looking for a switch to achieve non-global automatic scaling. Given the fact

Re: [R] lattice question: independent per-row or per-column scaling?

2009-01-19 Thread hadley wickham
On Thu, Jan 8, 2009 at 11:25 AM, René J.V. Bertin rjvber...@gmail.com wrote: Hello - and happy newyear to all of you! I've got some data that I'm plotting with bwplot, a 3x2x3 design where the observable decreases with the principle independent factor, but at different rates. I'd like to

Re: [R] lattice question: independent per-row or per-column scaling?

2009-01-19 Thread Chuck Cleland
On 1/19/2009 8:51 AM, hadley wickham wrote: On Thu, Jan 8, 2009 at 11:25 AM, René J.V. Bertin rjvber...@gmail.com wrote: Hello - and happy newyear to all of you! I've got some data that I'm plotting with bwplot, a 3x2x3 design where the observable decreases with the principle independent

Re: [R] lattice question: independent per-row or per-column scaling?

2009-01-19 Thread René J.V. Bertin
Thanks for all the answers. I'll have a look at ggplot2. I'd seen the possibility to set panel-specific limits via ylim, but I was in fact looking for a switch to achieve non-global automatic scaling. Given the fact that there is no built in provision for that, I take it it's a functionality that

Re: [R] lattice question: independent per-row or per-column scaling?

2009-01-19 Thread René J.V. Bertin
Thanks for all the answers. I'll have a look at ggplot2. I'd seen the possibility to set panel-specific limits via ylim, but I was in fact looking for a switch to achieve non-global automatic scaling. Given the fact that there is no built in provision for that, I take it it's a functionality that

Re: [R] lattice question: independent per-row or per-column scaling?

2009-01-18 Thread Deepayan Sarkar
On 1/8/09, René J.V. Bertin rjvber...@gmail.com wrote: Hello - and happy newyear to all of you! I've got some data that I'm plotting with bwplot, a 3x2x3 design where the observable decreases with the principle independent factor, but at different rates. I'd like to get lattice to

[R] lattice question: independent per-row or per-column scaling?

2009-01-08 Thread René J.V. Bertin
Hello - and happy newyear to all of you! I've got some data that I'm plotting with bwplot, a 3x2x3 design where the observable decreases with the principle independent factor, but at different rates. I'd like to get lattice to impose not a single set of axes ranges identical for all panels, but

[R] Lattice question: plotting two sets of data, defining groups for the second set

2008-10-08 Thread Alex Karner
R friends, I'm running R 2.7.2 on Windows XP SP2. I have some data that's amenable to smoothing, and some that's not. I'm trying to plot smoothed lines for the former along with just points for the latter in a single panel. The problem comes when trying to break out the points by group. My

Re: [R] Lattice question: plotting two sets of data, defining groups for the second set

2008-10-08 Thread Deepayan Sarkar
On Wed, Oct 8, 2008 at 3:41 PM, Alex Karner [EMAIL PROTECTED] wrote: R friends, I'm running R 2.7.2 on Windows XP SP2. I have some data that's amenable to smoothing, and some that's not. I'm trying to plot smoothed lines for the former along with just points for the latter in a single

[R] lattice question

2008-07-29 Thread Troels Ring
Dear friends - I have a plot of simulated data to compare to the observed and want the simulated to appear accumulated so that a darker grey corresponds to more lines of simulated data, but on top of that I want the measured values (Na) to be very visible. The code below meets only few of the

[R] lattice question

2008-07-06 Thread markleeds
I'm creating a lattice barchart based off a pretty complicated data structure. The barchart comes out quite nice ( thanks to lattice ) but the problem is that the horizontal axis comes out all scrunched because the barchart doesn't know that the intervals of Var.1 are really associated with the

Re: [R] lattice question

2008-07-06 Thread Felix Andrews
I think you want scales = list(x = list(relation=free)) On Sun, Jul 6, 2008 at 4:13 PM, [EMAIL PROTECTED] wrote: I'm creating a lattice barchart based off a pretty complicated data structure. The barchart comes out quite nice ( thanks to lattice ) but the problem is that the horizontal axis