On Fri, Dec 4, 2009 at 11:53 AM, Sunny Srivastava
wrote:
> Dear R-Helpers,
> I am not very experienced in using lattice and I am still in the learning
> stage
>
> I have a data set which looks like this: (I have deleted a few lines in
> order to save space)
>
> Chromosome marker Marker.Name Dist
On Thu, Dec 3, 2009 at 2:32 PM, Felix Andrews wrote:
> You can define a custom prepanel function: see the entry for
> 'prepanel' in ?xyplot
>
> If you just want to set specified ylims in each panel, you can do that
> by passing a list to 'ylim'.
All this assuming, of course, that scales="free" is
On Thu, Dec 3, 2009 at 10:02 AM, Felix Andrews wrote:
> Either
> (1) use the 'alternating' option rather than 'relation' (see
> documentation for 'scales' argument);
> or
> (2) put 'rot' inside the 'y' list if you want it to apply only to the y axis.
Or you can have
scales = list(y = list(at = y
On Fri, Nov 27, 2009 at 6:14 PM, Umesh Srinivasan
wrote:
> Hi,
>
> I have recently begun using the lattice package, and have been using
> the wireframe command to visualise matrices which are model outputs. I
> have been trying to plot two surfaces (from two matrices)
> simultaneously in one panel
On Fri, Nov 27, 2009 at 9:21 AM, Peng Cai wrote:
> @ Peter: I got it, thanks a lot for all your help! And yes, as you said the
> "title" option in auto.key is redundant.
>
>
> @ All, Hi: I need to add percentage sign to y-axis labels (like 0%, 20%,
> ..., 100%). How can I get it. I'm using barchar
On Thu, Nov 26, 2009 at 6:22 AM, ychu066 wrote:
>
> i was trying to do a for loop for plotting the histograms , but it doesnt
> work properly
>
>> library(lattice)
>> columns <- 8:153
>> plots <- vector("list", length(columns))
>> j <- 0
>> for (i in columns)
> + {
> + plots[[ j <- j+1 ]] <- his
On Thu, Nov 26, 2009 at 12:09 AM, Titus Malsburg wrote:
> The documentation of xyplot could be improved here. It says:
>
> "If 'index.cond' is a list, it has to be as long as the number of
> conditioning
> variables, and the 'i'-th component has to be a valid indexing vector for
> the
> in
On Fri, Nov 27, 2009 at 1:13 AM, Kjetil Halvorsen
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 which plot corresponds to t
On Tue, Nov 24, 2009 at 10:02 AM, Fredrik Johansson 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? (Note. I need to
On Fri, Nov 20, 2009 at 7:47 AM, Joe King 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 use Hmisc x
On Fri, Nov 20, 2009 at 12:53 PM, Dan Kortschak
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 bound the two sets of da
On Thu, Nov 19, 2009 at 6:30 PM, Ted Harding
wrote:
> See Addendum at end.
[...]
> Addendum:
>
> Well, the fonts were installed as above, indeed. However, according
> to the PLoS Guidelines one must generate .afm files before using
> them in R, along the lines of:
>
> First, convert the Arial .
On Thu, Nov 19, 2009 at 4:30 PM, Ted Harding
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]
> http://www.plosntds.org/static
On Thu, Nov 19, 2009 at 6:03 AM, ychu066 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 here to draw that .
On Mon, Nov 16, 2009 at 9:47 PM, wintere 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 to
> separate my
On Tue, Nov 17, 2009 at 3:31 PM, Wilberforce
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 factors. How do I
> do this?
>
On Wed, Nov 18, 2009 at 4:14 AM, Tim Smith 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 y
> 4 1 35
On Fri, Nov 13, 2009 at 8:05 PM, Christian Lederer
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 informed
> consent, and
On Thu, Nov 12, 2009 at 8:54 AM, Richard M. Heiberger wrote:
> Bastian Pöschl wrote:
>>
>> Dear useRs,
>>
>> I search for a possibillity to plot stacked bars at specific x positions.
>> I tried and tried, but the only way i got something adequate was by using
>> lowlevel plots segments(). That is
On Tue, Nov 10, 2009 at 11:09 AM, Peter Waltman wrote:
> Hi -
>
> Not a mission critical issue, but still highly annoying. I just upgraded R
> to 2.10.0 (the binary for Ubuntu karmic) and the tab completion facility now
> inserts a space after every completed term (something it didn't do in 2.9.0
On Fri, Oct 30, 2009 at 8:33 PM, Ottorino-Luca Pantani
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") /
>> / tp1.oats <- xyplot(yi
On Fri, Oct 30, 2009 at 2:10 AM, Ottorino-Luca Pantani
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 write the value in each p
2009/10/27 Joel Fürstenberg-Hägg :
>
> 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 amount of pages... Is it
> po
On Fri, Oct 23, 2009 at 1:54 AM, Jim Lemon 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
>> useless.
On Mon, Oct 26, 2009 at 12:19 PM, Ordaz, Sarah 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 xyplot
On Tue, Oct 27, 2009 at 12:07 PM, Dieter Menne
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 | Categories_BBCH_I
On Mon, Oct 12, 2009 at 9:32 AM, Jacob Wegelin 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" is a vari
On Sat, Oct 10, 2009 at 5:51 PM, Peter Ehlers 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 you.
>
> (Didn't
On Sat, Oct 10, 2009 at 12:13 AM, Rene 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 <-
> table(data.fram
On Thu, Oct 8, 2009 at 8:11 PM, John Field 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 this, so that only
> tho
On Thu, Oct 8, 2009 at 10:52 AM, Folkes, Michael
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 you're out there, I have
On Thu, Oct 8, 2009 at 6:54 AM, baptiste auguie
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 :
>> Dear all,
>>
>> I want to split the strips i
On Thu, Oct 8, 2009 at 1:57 AM, Paul Chatfield 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 if(f1[i]=="befor
e type="l" in panel.average/linejoin.
-Deepayan
> Regards,
> Peter Ehlers
>
> Deepayan Sarkar wrote:
>>
>> On Fri, Oct 2, 2009 at 8:03 PM, Mark Dalphin
>> wrote:
>>>
>>> Hi,
>>>
>>> I'm having a problem getting
On Sat, Oct 3, 2009 at 7:35 PM, David Winsemius 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:
>>
>> ---<--
On Fri, Oct 2, 2009 at 8:03 PM, Mark Dalphin 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 below which is sim
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 T
On Thu, Oct 1, 2009 at 6:38 AM, Lorenzo Isella 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)
> .
On Wed, Sep 30, 2009 at 6:54 AM, Andrewjohnclose 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),
> xlab=expression(italic("f
On Mon, Sep 28, 2009 at 9:08 AM, Antje 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,
>
On Thu, Sep 24, 2009 at 2:14 PM, Martin Lepage
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 :
>>
>> do_something_with(Typ
On Tue, Sep 22, 2009 at 12:03 PM, Erich Neuwirth
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 the formula argument
On Sat, Sep 19, 2009 at 3:36 PM, di jianing 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 like to comb
On Sat, Sep 19, 2009 at 9:42 AM, Larry White 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,
> but I can
hat what I was
> trying, a vertical line 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
On Fri, Sep 18, 2009 at 6:06 AM, baptiste auguie
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
> have to define a custom pan
On Wed, Sep 16, 2009 at 2:02 PM, Dan Kortschak
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 takes about an hour):
>
> ba
On Mon, Sep 14, 2009 at 3:55 PM, Jacob Wegelin wrote:
> How would I create the following plot using lattice?
>
> symbols( combPsummary$pastRate, combPsummary$finRate,
> circles=sqrt(combPsummary$N) )
>
> The idea is to plot finRate vs pastRate using circles whose areas are
> proportional to the nu
On Wed, Sep 9, 2009 at 2:53 PM, Afshartous, David
wrote:
>
> All,
>
> Below is an xyplot plot with multiple panels and a title produced via main:
>
> library("lattic")
> data.ex = data.frame(y = rnorm(10), t = rep(1:5, 2), group = rep(c(0,1),
> each = 5))
>
> xyplot(y ~ t | as.factor(group), data
On Sat, Sep 5, 2009 at 10:43 PM, Bryan Hanson wrote:
> Thanks David, your way of constructing df is much more compact than what I
> was using, so I've incorporated it. I also had my rows and columns
> transposed relative to how xyplot wanted them (though I had tested for that,
> other problems int
On Fri, Sep 4, 2009 at 8:28 AM, Paul Sweeting wrote:
> Hi
>
> Well, I think the title says it all! I've looked through the documentation
> but I can't find a way of doing this. The situation is that I have 4 series,
> say a, b, c and d. Series a and c are plotted on the lh y axis, series b and
On Fri, Aug 28, 2009 at 10:02 AM, Kevin Wright wrote:
> On Fri, Aug 28, 2009 at 11:49 AM, Duncan Murdoch wrote:
>
>> On 8/28/2009 12:33 PM, Kevin Wright wrote:
[...]
>> Now that doesn't sound like the browser. Whatever debugger you are using
>> has a bug.
>>
>> Duncan Murdoch
>>
>>
> Ah, right y
On Tue, Aug 25, 2009 at 10:16 AM, w_poet wrote:
>
> Hi R community,
>
> I'm just starting out in R and have a basic question about xyplot and
> tables. Suppose I had a table of data with the following names: Height,
> Age_group, City. I'd like to plot mean Height vs Age_group for each City.
>
> Whe
On Mon, Aug 24, 2009 at 8:04 PM, Donald Boyd wrote:
> Hi. Am brand new to R and to mailing lists - have never posted anywhere
> before, so hope I do this right.
>
> Am using R 2.9.1 with lattice graphics (just installed, fully up to date).
>
> Am doing trellis xyplot with y (emp=employment), x (yea
On Mon, Aug 24, 2009 at 4:27 PM, jebyrnes wrote:
>
> Hrm. I have to admit, I don't entirely understand how to use the scaling,
> and that seems like a lot of unneeded extra code. It is what it is, though.
That's true, and I think it would be easy enough to have a flag to
panel.3dscatter etc. tel
On Sun, Aug 23, 2009 at 5:41 PM, Ben Bolker wrote:
>
>
>
> Fredrik Karlsson wrote:
>>
>> Dear list,
>>
>> I have a two character vector with two different values in them (two
>> each, that is). Naturally, when I use these vectors as grouping
>> factors in a lattice plot, I get four panels.
>> Now,
On 8/11/09, Alex van der Spek wrote:
> I am trying to add 2 stdev error bars to lattice type plots:
>
> panel.ebar<-function(x,y,dy=NULL,...) {
> panel.xyplot(x,y,...)
> panel.segments(x,y-dy,x,y+dy,...)
> }
>
> Then:
>
> xyplot(y~x|fc,data=dat,dy=dat$dy,panel=panel.ebar)
>
>
On 8/18/09, Jarrett Byrnes wrote:
> A quick question. I'm trying to plot a surface from a fitted model along
> with the original points, as in the following example:
>
>
> df<-data.frame(expand.grid(100*runif(1:100),
> 100*runif(1:100)))
> df$Var3<-rnorm(length(df$Var1), mean=df$Var1*df$Var2,
>
---
> Vincenzo Luca Di Iorio
> Consultant PME User support - GSK R&D Limited
> ---
>
>
>
> "Deepayan Sarkar"
>
> 12-Nov-2008 07:04
>
>
On Thu, Aug 6, 2009 at 7:27 AM, Kito Palaxou wrote:
>
> Hi all,
>
> I have a data frame like this:
>
> DF <- data.frame(x = rnorm(10), y = rnorm(10), gr = rep(1:5, 2))
>
> and I make the following xy-plot:
>
> library(lattice)
> xyplot(y ~ x, data = DF, groups = gr, type = "b", col = 1)
>
>
> Is it
On Wed, Aug 12, 2009 at 7:19 AM, wrote:
> Thank you Gerrit,
>
> Your suggestion proved right after all:
>
> This does put error bars (dy) on the points. You only need to figure out
> the proper y axis scaling.
>
>> xyplot(y~x|f,data=xy,groups=dy,panel=function(x,y,groups,subscripts,...)
> {panel.x
On Thu, Aug 13, 2009 at 6:34 AM, willow1980 wrote:
>
> Dear Professor Murdoch,
> That is exactly the difficulty for me. I don't know how to make a prediction
> with lmer using "expand.grid"; at the moment, I can use
> “mo...@x%*%fixef(model)” to get predicted values for existing observational
> dat
On Tue, Aug 11, 2009 at 6:30 AM, Frank E Harrell
Jr wrote:
> Dear Group:
>
> I want to use lattice with a formula such as y ~ x | v to plot a data frame
> in which v varies to indicate which "x" is really being plotted. I know how
> to make the x-axis scales vary with the panel but is it possible t
On Tue, Aug 11, 2009 at 12:43 PM, Peng Yu wrote:
> Hi,
>
> I frequently need to open multiple help pages in R, which requires the
> start of multiple R sessions. I am wondering if there is a way to
> invoke the help page from the command line just like 'man'.
If you are feeling adventurous, you mi
On 8/7/09, Duncan Mackay wrote:
> Hi RUsers
>
> I like to keep the plots self contained and avoid changing the current
> device parameters by using the par.settings.
> To see what I could achieve by using par settings I tried the following and
> several variants but could not get black points.
>
On 8/7/09, Jacob Wegelin wrote:
> Suppose we wish to achieve the following three aims:
> (1) Control the aspect ratio of our plot (i.e., tweak this till it looks
> great)
>
> (2) Save the plot as a PDF with zero or minimal white space outside it.
>
> (3) Preserve this in code, so that in the f
On 8/6/09, Peng Yu wrote:
> Hi,
>
> I'm wondering if R provide a vi mode in the command line just like
> other shells such as bash do. Can somebody let me know?
I've never used vi-mode, but vi mode in bash (at least) is provided by
the readline library, and R uses the same library. If you set u
On 8/7/09, boris.vasil...@forces.gc.ca wrote:
> Dear R-users,
>
> I am looking for suggestions on how to control the line-height for
> multi-line labels in lattice dotplot.
>
> In particular, in the dotplot produced by
>
> library(lattice)
> aa <- c('A'=10,'B\nb'=20,'C'=30)
> dotplot(aa)
>
>
On 8/7/09, Romain Francois wrote:
> On 08/04/2009 10:02 PM, Deepayan Sarkar wrote:
>
> > On Tue, Aug 4, 2009 at 11:37 AM, Vitalie S. wrote:
> >
> > > Dear UseRs,
> > >
> > > I declared a `$` method for a S4 class. Can I have ab automatic
> co
On Thu, Aug 6, 2009 at 10:45 AM, Vitalie S. wrote:
>
>>
>> Completion should be automatic if you define names() to return the valid
>> names.
>
> Thank you Deepayan, that works beautifully. I wonder though; names function
> for environment objects always returns NULL, but completion still works.
>
On Wed, Aug 5, 2009 at 6:27 PM, Jacob Wegelin wrote:
> Is there a simple way to specify a theme or trellis (lattice) parameters so
> that, in a multipanel (conditioned) plot, there is no color and in the
> strips there is no shading? This is the effect achieved on page 124 of
> Deepayan Sarkar's "L
On Wed, Aug 5, 2009 at 2:24 PM, Jacob Wegelin wrote:
> On Wed, 5 Aug 2009, Deepayan Sarkar wrote:
>
>> On 8/5/09, Jacob Wegelin wrote:
>>> I would like to use lattice graphics to plot multiple functions (or
> groups
>>> or subpopulations) on the same plot r
On 8/5/09, Jacob Wegelin wrote:
> I would like to use lattice graphics to plot multiple functions (or groups
> or subpopulations) on the same plot region, using different line types "lty"
> or colors "col" to distinguish the functions (or groups).
>
> In traditional graphics, this seems straigh
On 8/5/09, pomc...@free.fr wrote:
> Hi Deepayan,
>
> Thank for you reply.
> I am a little bit confused now. In the one hand, the trellis.device function
> has lost his bg argument as explained in the Note section of ?trellis.device,
> but the background info provided by a theme does not seem t
On 8/5/09, pomc...@free.fr wrote:
> Just replying to bring back some attention on my post, which might have slept
> through on Saturday.
>
> Thank you for your help.
>
>
> - Mail Original -
> De: pomc...@free.fr
> À: r-h...@stat.math.ethz.ch
> Envoyé: Samedi 1 Août 2009 15h48:24 GMT -
On Tue, Aug 4, 2009 at 11:37 AM, Vitalie S. wrote:
> Dear UseRs,
>
> I declared a `$` method for a S4 class. Can I have ab automatic completion
> for this operator in R? Lists and environment objects provide this feature
> by default, but my object is an extension of "function" class which does not
On Mon, Aug 3, 2009 at 9:36 AM, Marlin Keith Cox wrote:
> Hello, hopefully simple question, but I cannot find the answer. I need to
> change the color from the standard default. Still want the scaled colors,
> but need different colors for different graphs.
>
> Code is:
>
> wireframe(z ~ y*x, mat
On Thu, Jul 30, 2009 at 3:09 PM, jimdare wrote:
>
> Dear R Users,
>
> I have a dataset that I have split by group. For each group I plot a figure
> using:
>
> for (i in splitdf){
> plot<-xyplot()
> print(plot)
> savePlot(filename=paste(i$Group[1]),type="pdf")
> }
>
> This gives me
On Thu, Jul 30, 2009 at 12:43 AM, Armin Goralczyk wrote:
> Hello (R-)Experts
>
> I hope someone can help with this problem concerning axis annotation
> of a lattice shingle plot. I want a plot with three shingles to
> display some laboratory value over time. In the first panel over the
> first few
On Wed, Jul 29, 2009 at 9:11 AM, jaregi wrote:
>
> Hi Michael, Steve, and 1Rnwb,
>
> I'm very impressed by the quick replies on the mailer. Thanks a lot for your
> suggestions. They worked very well.
>
> In general, I have to say that I'm a bit disappointed that in R, like in
> Excel, one basically
On Mon, Jul 13, 2009 at 8:33 AM, OB wrote:
> I am using R 2.8.1 and lattice to produce xyplots conditioned on
> two factors. What I would like is to have the scales be free between values
> of one factor, but some within. Thus, in this example,
>
> xyplot(mpg ~ disp | factor(gear) + factor(cyl), mt
On Sat, Aug 1, 2009 at 7:26 AM, Gary Lewis wrote:
> I could use some advice regarding xyplot.
>
> I've got 2 time series. Both cover approximately the same period of
> time (ie, 1940 to 2009). But one series has annual data and the other
> has monthly data. One refers to university enrollment; the
On Tue, Jul 28, 2009 at 6:58 AM, Peter Ehlers wrote:
> David,
> ?panel.abline does not indicate that 'from/to' are arguments to
> that function. If you read the help page carefully, you'll see
> that 'from/to' apply to panel.curve(). Perhaps you thought that
> the '...' argument can take 'from/to';
On Tue, Jul 21, 2009 at 7:47 AM, Jun Shen wrote:
> Uwe,
>
> Thank you for your reply. I am still not very clear about the meanings of
> the arguments in the stats function. To make it clearer, quantile() uses
> type=7 as default method. I believe this is the method bwplot() uses to
> calculate t
On Tue, Jul 7, 2009 at 3:03 PM, wrote:
> Hi,
>
> I have been trying to re-order several items in a trellised barchart
> display in lattice, but can't seem to figure it out.
>
> ###sample code, Stage and Colony have 2 and 3 levels respectively.
>
> barchart(Activity ~ Percent | Stage + Colony, data
On Fri, Jul 3, 2009 at 1:02 PM, baptiste
auguie wrote:
> ?strip.custom
>
>
> p <-
> xyplot(acet+chol+ino+acetp ~ zp,
> group=grp,
> data=data,
> type="l",
> scales=list(relation="free"),
> auto.key=list(title="
>>
>> Neurotransmitters", border=TRUE))
>
>
>
> update(p, strip
On Fri, Jul 3, 2009 at 10:02 AM, Martin
Eklund wrote:
> Hi,
>
> I have two questions regarding the cloud function in the lattice
> package:
>
> 1) Is there a way to not print the surrounding frame (i.e. the square
> surrounding the entire plot)?
There is an example in the cloud help page that show
On Thu, Jul 2, 2009 at 10:11 AM, Robert A. LaBudde wrote:
> I don't seem to be able to put any syntax into identify() that gets it to
> work with "lattice" cloud() graph:
>
> layout(1)
> require('lattice')
> cloud(g3 ~ g1 + g2, data=gapp, col = "blue",
> xlab='G1 Score', ylab='G2 Score',
> zlab='
On Wed, Jul 1, 2009 at 10:38 PM, jlfmssm wrote:
> I have a data set like this
>
> ID=c("A","A","A","A","A","A","A","B","B","B","B","B","B","B")
> s=c(1.1,2.2,1.3,1.1,3.1,4.1,4.2,1.1,2.2,1.3,1.1,3.1,4.1,4.2)
> d=c(1,2,3,4,5,6,7,1,2,3,4,5,6,7)
> t=c(-3,-1,0,1,2,3,4,-3,-2,-1,0,1,2,3)
>
> mydata<-data.
On Fri, Jun 26, 2009 at 1:53 AM, Dieter
Menne wrote:
> Willem Vervoort usyd.edu.au> writes:
>
>> I am not sure what I am doing wrong, but I have some unexplained behaviour
> when saving a lattice graph
>> including text to a pdf file. The text seems to move around. It must have
> something to do w
On Wed, Jun 24, 2009 at 2:05 PM, Katharina
May wrote:
> That's a point. I justed wanted to provide an overview for myself to
> see the tendencies in a direct comparement
> and with an easy way to distinct them, but maybe the text panel can
> help me with that...
>
> Well anyway, is it right that a
On Tue, Jun 23, 2009 at 1:38 PM, nmset wrote:
>
> http://www.nabble.com/file/p24173983/groups.csv groups.csv
> http://www.nabble.com/file/p24173983/groups.r groups.r
>
> Hello,
>
> Points of an xyplot can be identified to a particular group according to
> 'sunflowers', a different one per group. Ho
On Mon, Jun 22, 2009 at 1:54 AM, nmset wrote:
>
> I have attached 2 files sample.csv and sample.r to illustrate the problem.
No attachments came through.
-Deepayan
__
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE
On Sat, Jun 20, 2009 at 9:13 AM, nmset wrote:
>
> Hello,
>
> I'm plotting an xyplot where a continuous var recorded every min is plotted
> on y, and time expressed as HH:MM:SS on x, as follows :
>
> xaxis=list(tick.number=12,rot=90)
> lst=list(x=xaxis)
> xyplot(upt$LOAD_1 ~ upt$TIME, data=upt, type
On 6/19/09, SEUNG CHEON HONG wrote:
> Dear R Lists,
>
> Can anyone help me add site IDs (site: 1~50) directly to my xyplot. I have
> 50 sites and collected observations from the sites at 13 different time
> points. I want to look at the change of my observations in each site. I was
> able to m
On 6/18/09, Katharina May wrote:
> Hi Sorn,
>
> thanks for your code. I guess I didn't really made myself very clear.
> What I sort of looking for is a xyplot with both the x axis at the bottom
> and y axis at the
> left going through 0, but continuing in the positive and negative area
> (fo
On 6/18/09, Katharina May wrote:
> Hi there,
>
> sorry for troubling everybody once again, I've got a problem rewriting
> Sarkar's function for
> rewriting the tick locations in a logaritmic way (s.
> http://lmdvr.r-forge.r-project.org/code/Chapter08.R):
>
> His example works for log 2 but I
On 6/16/09, Marion Dumas wrote:
> Hello!
> I am starting to use the lattice package. I generated an xyplot conditioned
> on a factor that has three levels: hence I get three plots in three panels
> spaces and one is left empty. I would like to add a plot to the empty panel
> space. Is it possible
On Tue, Jun 16, 2009 at 7:24 AM, taz9 wrote:
>
> Hi All,
>
> I'm trying to format the y-axis in an xyplot to show numbers with a comma
> separating the thousands but I'm not able to do it using formatNum(y,
> big.mark=","). This is what I have:
>
> library(lattice)
>
> year<-c(2003,2004,2005,2006,2
On Fri, Jun 12, 2009 at 10:54 AM, Chosid, David
(FWE) wrote:
> I'm wondering if I am dealing with a limitation in lattice. It's
> probably due to my own limitations though.
>
> I'm working with a lattice dotplot. The x-axis is set at "free". In
> one panel, there are only two data points that ha
301 - 400 of 756 matches
Mail list logo