similar to: lattice: bwplot and panel.lmline()

Displaying 20 results from an estimated 11000 matches similar to: "lattice: bwplot and panel.lmline()"

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
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 =
2005 Mar 17
0
xyplot w/ panel.lmline "solution"
Dear Sebastian Luque (and All R Users) With the following code I managed to plot different characters and regression lines for panels 2 ("Day of year 101") and >4 ("Days of year" 151, 157 and 172): xyplot(log(no.larvae)~age.cls|factor(day),data=mortal, layout=c(7,1),aspect=5/3, xlab="Age class (d)",ylab="Ln(Abundance)",
2005 Mar 15
1
help w/ xyplot and panel.lmline
Dear All, I'm confortable with xyplot(...) and panel.lmline(...) statements (at least I thought I did :). I've used the following code to plot the decline in log-abundance of fish larvae (no.larvae) with age (age.cls, 4 to 27 days-old) for specific dates of sampling (day, 9 dates). I further plotted data with different colors and regression lines for ages 5-14 d and 17-23 d in a 7-by-1
2009 Jul 23
0
panel.lmline - are m, b, and r^2 accessible somehow?
Hi R Folks... Are the results of a fit carried out by panel.lmline readily available for use in a lattice plot? I¹d like to put r^2, m, and b on each panel. I can certainly write something that does this manually and then use it with panel.text, but if it¹s already available, that would be preferable, especially as lattice permits condition and subsetting so readily. Looking at panel.abline, I
2009 Jan 23
1
lattice: reverse order of panel.lmline, panel.smooth
Hi, is it possible to reverse the order in which panel.lmline() or panel.smooth() operation in xyplot() ? This type of situation might occur when plotting some variable with depth, but the relation we want to describe is variable ~ depth, and not depth ~ variable, as the plotting formula would suggest. # an example: d <- 1:100 v <- d * rnorm(100) xyplot(d ~ v, ylim=c(100,0),
2007 Sep 10
1
lattice panel.lmline problem
I am wanting to generate panels showing scatterplots with the linear fitted line for two groups within each panel superimposed. I have two conditioning factors, "variable" and "Group" and I want separate panels for each level of "variable" with different symbols and "lmline"s for each level of "Group". However all observations for a group are
2012 Oct 30
1
Is there an lm() equivalent of panel.lmline()?
panel.lmline returns intercept and slope of y ~ x subsetted to the combination of conditioning factors given to xyplot in lattice. for instance: xyplot(Xvalues ~ log(Qvalues)|Tfac, data = df7, panel = panel.lmline) I am looking to find the equivalent formulation for lm() proper. If I do this: lmcal <- lm(Xvalues ~ log(Qvalues):Tfac, data = df7) Only one value of the intercept is returned.
2006 Jun 06
0
xYplot, lmline and abline
Dear All, I need to produce a multi-panel plot where: 1) groups within panels receive distinct symbols; 2) a linear regression is fit to the entire panel, not the individual groups; 3) a common abline is plotted in each panel. Essentially I would like to merge the two plots below, but I can't seem to figure out how to call both lmline and abline, and also retain the grouping symbols.
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
2008 Jan 07
2
reducing the number of x-axis lables in a bwplot while plotting all boxes
I apologize if this is somewhere in the archives, but I can't seem to find a solution to this question. I've been trying to plot a bwplot: print( bwplot( n.pareto ~ as.factor(gen) | mut.rate * n.pop, data=p6, horizontal=FALSE, box.ratio=0.75, cex=0.6, xlim=c(-1,51), ylim=c(-1,500),
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 <-
2011 Oct 21
1
lattice::xyplot/ggplot2: plotting weighted data frames with lmline and smooth
In the HistData package, I have a data frame, PearsonLee, containing observations on heights of parent and child, in weighted form: library(HistData) > str(PearsonLee) 'data.frame': 746 obs. of 6 variables: $ child : num 59.5 59.5 59.5 60.5 60.5 61.5 61.5 61.5 61.5 61.5 ... $ parent : num 62.5 63.5 64.5 62.5 66.5 59.5 60.5 62.5 63.5 64.5 ... $ frequency: num 0.5 0.5
2007 Oct 04
2
plot from source file
Dear list Maybe someone can help with the following problem: I have a source file containing the following code for plotting: pdf(file = 'data/mario/boxplot.pdf') bwplot(sig100 ~ target | group, data = fish, main = 'Boxplot der Signale in 100 Zellen nach Gruppe', xlab = '', ylab = 'Anzahl der Signale') dev.off() pdf(file = 'data/mario/xyplot.pdf')
2006 Feb 26
2
How to produce notches in bwplot?
Dear r-helpers, tst <- data.frame(as.numeric(x <- 1:20), f <- rep(c('hi','lo'), times = 10)) with(tst, bwplot(f ~ x, panel = function(x, y){panel.bwplot(x, y, pch = '|', stats = boxplot.stats, fill = 8, varwidth = T)})) I can't figure out from the documentation how to tell stats that I would like to see notches or (even bands). Here is what I've
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
2012 Jun 13
2
add horizontal reference lines in lattice bwplot
I'm plotting a lattice bwplot from a data.frame and would like to add some horizontal lines indicating some reference values (preferably with text annotation) as well as a grid of regular log tics. The following illustrates the plot: data(ToothGrowth) require("lattice") p = bwplot(exp(len) ~ supp, ToothGrowth, panel = function(..., box.ratio) { panel.grid(h=-1,
2010 Jul 23
2
re-ordering bwplot
Dear list: I'm using bwplot to compare concentrations by location and treatment as in: # using built in data bwplot( conc ~ Type : Treatment, data = CO2 ) I would like the order of the plots to be: 3,4,1,2. I can't seem to figure this out with index.cond or permc.cond. Any help is appreciated! Brad Eck [[alternative HTML version deleted]]
2005 Mar 11
2
Lattice bwplot error
Dear all; Searching the R site for answers to my problem, but found none. Here is the run and error: > bwplot(dev ~ Dbhcl | Period, data = DbhValid2, font = 2, + main=list(" "), axis.font =2, + ylab = list(label = "Residual (cm)", font = 2), + xlab = list(label = "Dbh class (cm)", font = 2), + par.strip.text=list(cex=0.8, font=2), + panel=function(x,
2007 May 21
2
Questions about bwplot
Dear R-experts, I have some questions about boxplots with lattice. My data is similar as in the example below, I have two factors (Goodness of Fit and Algorithms) and data values but in each panels the scales are quite different, therefore the normal boxplots produced by set.seed(1) GOF <- factor(rep(c("GOF1","GOF2","GOF3"),each=40)) Alg <-