similar to: Lattice: problem using panel.superpose and panel.groups

Displaying 20 results from an estimated 9000 matches similar to: "Lattice: problem using panel.superpose and panel.groups"

2010 Sep 27
1
bwplot superpose panel.points from another dataframe
Hi everybody, using bwplot for producing panel boxplot with 3 dimensions i want to add a mark on each boxplot representing one individual (on all its dimensions) till now, i didn't succeed getting the desired solution I want as well to keep the median symbols as a line Many thanks for your help christophe here is the tested code: ######################## library(lattice) ex <-
2008 Jun 16
2
Lattice: Superpose bwplot and dotplot [newbie question]
Hello everyone I have dataset containing a monetary value (ABS) and two factors (Fct, Group). I am able to create useful using: bwplot(ABS~Group|Fct) and dotplot(ABS~Group|Fct) Question: What do I have to do to overlay the dotplot with the bwplot (same data set)? I've found a couple of posts that hinted at the possibility of doing that, and checked the panel.superpose() help, but the info
2008 Jun 16
1
Lattice: Superpose bwplot on dotplot [Newbie Question]
Hello everyone I have dataset containing a monetary value (ABS) and two factors (Fct, Group). I am able to create useful using: bwplot(ABS~Group|Fct) and dotplot(ABS~Group|Fct) Question: What do I have to do to overlay the dotplot with the bwplot (same data set)? I've found a couple of posts that hinted at the possibility of doing that, and checked the panel.superpose() help, but the
2011 Jul 04
1
superimposing different plot types in lattice panel.superpose
I would like to plot 3 best-fit models in a single panel of a lattice plot, superimposed on 3 corresponding datasets in the same panel. My goal is to show the models as lines of 3 different colors, and the data as points whose colors correspond to the model colors. In essence, I have two levels of grouping: 1) model vs. data, and 2) model number. Since there is only one ?groups? variable, I
2009 Jul 31
1
superpose 2 time series with different time intervals
I could use some advice. 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 other to unemployment rates. Both are currently in the same data frame. I'd like to use the monthly times series as a light grayscale background for a plot of the
2004 Sep 17
2
lattice: bwplot and panel.lmline()
On Friday 17 September 2004 13:52, RenE J.V. Bertin wrote: > Hello again, > > I am doing regressions (using panel.lmline() (and panel.abline( > rlm(...))) ) inside a panel method which I pass to bwplot(). > > What I would like to do is create a boxplot of categorised data > (binned on the independent variable), and superpose a regression line > which is calculated using the
2011 Mar 24
1
Colour makes my life; but not my bwplot (panel.violin)
Using Trellis, am successfully setting up a number of panels (25) in which I have two box and violin plots. I would like to colour - one plot as RED and the other as BLUE (in each panel). I can do that with the box plots, but the violin density areas just take on one colour. My basic call is as follows: bwplot(rmsd ~ file | code, data=spread_data.filtered, panel = function(...,
2010 Nov 02
1
Colour filling in panel.bwplot from lattice
Inspired by colouring the dots of box-whisker plots I am trying to also fill the boxes (rectangles) with different colours. This seems not to work as I expected. Looking at the help page of panel.bwplot it says: 'fill - color to fill the boxplot'. Obviously it is only intended to fill all boxes with only one colour? Nevertheless the following example shows, that 'fill' from
2009 Aug 01
2
xyplot: superpose 2 time series with different time intervals
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 other to unemployment rates. Both are currently in the same data frame. I'd like to use the monthly times series as a light grayscale background for a
2011 Aug 20
1
Groups and bwplot
Dear R-users, A while ago, Deepayan Sarkar suggested some code that uses the group argument in bwplot to create some 'side-by-side' boxplots (https://stat.ethz.ch/pipermail/r-help/2010-February/230065.html). The example he gave was relatively specific and I wanted to generalize his approach into a function. Unfortunately, I seem to have some issues passing the correct arguments to the
2010 Jul 07
0
subscripts for panel.superpose in lattice
Hi, I am trying to superimpose (overlay) regression lines to scatter plots by groups with xyplot (dysfunctional code below). However, my call of panel.superpose breaks down because of the subscripts requirement. I tried to research the documentation and examples, but I cannot figure out how to make xyplot plug subscripts to a panel... call. Could you have a look? It would be greatly appreciated.
2004 Jan 02
1
bwplot and panel.bwplot
Hello, I am trying to use "bwplot" to display whisker boxes according to some conditioning factors ("age" has two values 1/2). I get the following messages: > library(trellis) > bwplot(dvk95~age|site*season,panel=function(x,y){panel.bwplot(x,y)}) Error in tapply(1:0, structure(list(INDICES = numeric(0)), .Names = "INDICES"), : arguments must have
2013 Apr 07
4
Same boxplot colors by panels in lattice (bwplot)
Dear all, I would like to have the same color for the all boxplots from the same panel, but my code below shows the two colors alternating. Thanks! set.seed(42) D1 <- rnorm(200) D2 <- factor(sample(letters[1:2],200,TRUE)) D3 <- factor(sample(letters[3:5],200,TRUE)) DF <- data.frame(x=D1,a=D2,b=D3) print(bwplot(b~x|a,data=DF,col=c("black","black"),
2010 Mar 12
5
Vertical subtraction in dataframes
Hello all, I have not been able to find an answer to this problem. I feel like it might be so simple though that it might not get a response. Suppose I have a dataframe like the one I have copied below (minus the 'calib' column). I wish to create a column like calib where I am subtracting the 'Count' when 'stain' is 'none' from all other 'Count' data for
2004 Nov 05
1
I: a coloured band within each panel of a lattice bwplot
Hi all, I would like to add to each panel of a bwplot a coloured central band, centered on the mean of the values, being its width +- 2% of the mean itself. I know how to add lines, i.e. something like bwplot(X ~ Y|FACTOR data=my.df, panel= function(x, y){ panel.bwplot(x, y) panel.abline(v = mean(x, na.rm = T) - mean(x, na.rm = T) * 0.02 panel.abline(v =
2009 Apr 07
1
Lattice Groups
Hi all, I'm trying to achieve a few things using the lattice package but am failing miserably. I am plotting side by side box plots and using a grouping variable, e.g. cols <- c("Sepal.Width", "Petal.Length", "Petal.Width") stackedData <- stack(iris[, cols]) df <- data.frame(y = stackedData$values, x = rep(iris$Species, 3), which = gl(3,
2012 Sep 10
1
bwplot(): Can Panel Heading Span Two Lines?
A conditioning factor for bwplot() is the stream name. There are 17 streams so each panel is comparatively small and the names in the panel header are truncated at both ends. I would like to wrap the names on two lines for each panel but do not see if this can be done when I look at the online docs (?bwplot) or the Lattice book. Is there a way to fit long strings as headers with multiple panels on
2010 Jan 15
5
panel.bpplot
Hi everybody, I am a newbie in R. I would like to use the panel.bpplot function on my data set but I have some problems. Can this function work on matrix? My data set have some NaN and when I run panel.bpplot function it returns error due to the presence of NaN. How Can I solve this? Thank you so much for your help netrunner -- View this message in context:
2005 Jun 14
2
lattice, panel.grid, and scales=list(tick.number=XXX)
I have a Lattice plot in which I want to adjust the number of tick marks used, and I want to have the drawn grid reflect that change. Here is what I'm doing: bwplot(var1 ~ var2, data=df, scales=list(tick.number=10), panel=function(...) { panel.grid(h=0,v=-1,...); panel.stripplot(col="gray40", pch="|", cex=2, ...); panel.bwplot(...); })
2008 Jan 18
1
Selecting rows conditionally between 2 data.frames
Hello everyone, I have two data.frames that look like calib: place zoom scale left 0.65 8 left 0.80 5.6 left 1.20 3 right 0.65 8.4 right 0.80 6 right 1.20 2.9 X: ... place zoom .... ... left 0.80 .... ... left 1.20 .... ... right 0.65 .... ... NA NA .... ... right 0.8 .... ... left 1.20 .... and I want to get the corresponding values of 'scale' in a new column