Displaying 20 results from an estimated 2000 matches similar to: "Lattice: hiding only some strips"
2007 Jul 03
1
Lattice: shifting strips to left of axes
Consider this plot:
xyplot(mpg ~ disp | cyl, mtcars, strip=F, strip.left=T, layout=c(1, 3),
scales=list(relation="free"),
par.settings=list(strip.background=list(col="transparent")))
I want to have the "cyl" strip labels on the left side of the axis. Is
this possible?
Failing that, is it possible to remove the left axis and display it on
the right
2008 Jul 10
2
Lattice: merged strips?
Hi all,
By default a call to xyplot from the Lattice package when using 2
factors [eg xyplot( dv~iv | XY * AB ) ] yields the following shingle
structure:
|_A_|_A_|_B_|_B_|
|_X_|_Y_|_X_|_Y_|
However, I'm wondering if it is possible to merge the upper shingle
within levels of that factor, as in:
|___A___|___B___|
|_X_|_Y_|_X_|_Y_|
Mike
--
Mike Lawrence
Graduate Student, Department of
2005 Oct 18
2
Lattice graphics strip labels for shingles
Dear all,
back in 2002 Martin Henry H. Stevens wrote
(https://stat.ethz.ch/pipermail/r-help/2002-May/019851.html)
> How do I control the text in strips? Specifically, I want to put in the
> ranges generated in shingle(x) where x is continuous.
with an answer from Deepyan Sarkar (see strip.new towards the end of this
message). I assume that the answer worked back then, but I've tried
2009 Jul 30
2
lattice shingle plot axis annotation
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 days, then in the next panel some months, and in the last
panel some years. In the following minimal example the axis annotation
will be in days, but I'd like to
2007 Nov 28
1
interaction of shingles and tapply()
I'm interested in a version of tapply() that operates with shingles
instead of factors. For instance:
x <- c(1,1,2,2,3,3)
y <- c(1,1,1,0,0,0)
s <- shingle(x,intervals=cbind(c(0.5,1.5),c(2.5,3.5)))
# the following function should exist!
tapply.shingle(x,s,mean) # returns the vector c(0.75,0.25)
I've written such a function as follows:
tapply.shingle <-
2008 May 06
2
Lattice problems / cannot load lattice
Hi,
My problem is simple: since having updated the lattice package, I cannot
load lattice anymore. If I type in the command 'library(lattice)' the
loading fails with the following message:
--- cut here ---
Error in library.dynam(lib, package, package.lib) :
shared library 'lattice' not found
In addition: Warning messages:
1: In loadNamespace(package, c(which.lib.loc,
2009 Nov 13
1
Trellis settings get lost when printing to pdf
Hi all,
I've got some problems when changing the trellis settings for the lattice plots. The plots look exactly as I want them to when calling show.settings() as well as when plotting them in the graphical window. But when printing to a pdf file, none of the settings are used!? Does anyone know what might have happened? Because the when changing the trellis settings, these should remain in
2009 May 07
3
Plotting counts vs. intervals for a shingle
Hello!
Suppose I have a set of values:
a <- c(1:10, 5:10)
Suppose I also have a set of intervals:
b <- cbind(c(0,2.5,4.5,6.5), c(5.5,7.5,9.5,11))
I can create a shingle that counts how many values are in each interval:
c <- shingle(a, b)
I can display the shingle to see the counts:
summary(c, showValues=FALSE)
The display looks like this:
Intervals:
min max count
1 0.0 5.5
2013 Feb 08
2
Count of Histogram Bins using Shingles with lattice
I know that I can get a count of histogram bins in base R with plot=FALSE. However, I'd like to do the same thing with lattice. The problem is that I've set up shingles, and I'd like to get the count within each bin within each shingle. plot=FALSE doesn't seem to do it.
[[alternative HTML version deleted]]
2002 May 10
2
lattice: labelling shingles
How do I control the text in strips? Specifically, I want to put in the
ranges generated in shingle(x) where x is continuous.
Thanks,
Hank
Martin Henry H. Stevens, Assistant Professor
338 Pearson Hall
Botany Department
Miami University
Oxford, OH 45056
Office: (513) 529-4206
Lab: (513) 529-4262
FAX: (513) 529-4243
http://www.muohio.edu/~botcwis/bot/henry.html
2009 Feb 10
1
lattice shingle with time and date format
Hi R-Users,
I have a time series of bivariate observations (x,y,t). I've
developed a few panel routines to explore certain aspects of the data,
and now would like to break the time series up into smaller chunks to
explore the temporal trends. I would like to know if anyone has any
experience breaking up time series with lattice.
Base graphics offers coplot, utilizing the
2003 Dec 09
1
documentation fixes (cvs) (PR#5632)
The patch below attempts to correct some unclear sentences in the R
documentation.
In the case of coplot.Rd it wasn't clear whether "shingle" bar had a
special meaning or was a typo for "single". I've just put a comment in
that case.
regards
--
Brian Gough
Network Theory Ltd -- Publishing Free Software Manuals
15 Royal Park
Bristol BS8 3AL
United Kingdom
Tel: +44
2002 Aug 21
2
More help with Lattice
Hi:
Thanks a lot to Deepayan Sarkar, author of lattice I think, who
solved my first query. I am afraid that I have another one.
I am plotting several mutipanels boxplots (with one conditioning
variable) on one page. The x, y and conditioning variable are all
continuous variables. The x and conditioning variables are
transformed to shingles before being plotted. The plot looks nice but
there
2008 Oct 17
6
Simple Gantt like chart for numbers rather dates
I would like to produce a chart that looks like a Gantt chart (or
shingle plot), but instead of tasks you have variable names and
instead of start and finish dates you have an upper and lower numeric
value.
If that makes sense, is there an obvious way of doing this.
Thanks,
Graham
2007 Apr 10
2
Positioning in xyplot
Dear R-helpers,
I have an xyplot
of the following kind:
xYplot(y ~ x | p, groups = factor(gg, levels = c('1', '5', '2', '4',
'3')),
strip = strip.custom(var.name = 'g', factor.levels = c(1', '5', '2',
'4', '3'),
strip.levels = T, strip.names = T, sep = ' = ', shingle.intervals =
NULL),
data =
2005 May 05
6
Need some quick help with lattice - barchart
For the following code below, the x-axis ticks are 1,2,3,4,5,6,7 when I was expection them to be 1,2,8,9,10,11,12. Please help me figure out where is the mistake.
library(lattice)
testdata <- as.data.frame(t(structure(c(
1,2005,9.24,6.18,634,
2,2005,8.65,6.05,96,
8,2004,6.81,6.51,16,
9,2004,9.0,7.29,8,
10,2004,8.84,6.18,524,
11,2004,8.54,6.35,579,
12,2004,9.97,6.3,614,
12,2005,8.75,5.84,32,
2009 Jul 09
2
Lattice xyplot: same scales within one factor
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 the example:
xyplot(mpg ~ disp | factor(gear) + factor(cyl), mtcars,
scales=list(x=list(relation="free")))
rather than having the x scales be free within a gear as well, I want it to
be the same for
2004 May 04
1
Simple lattice graphics question
Dear all,
I am using panel graphics to do a stripplot of a variable versus a shingle
and putting a loess curve on the stripplot. I want the data jittered, but I
can't seem to get the panel function to work. This jitter's the data, but
of course doesn't give me the loess:
> stripplot((g[,3]) ~ c,jitter=T,pch=".",scales=list(y=list(log=T)))
But this doesn't give me
2008 Oct 05
1
Conditioning variables in lattice - not all combinations
Hello,
I have a shingle A and B. A has 5 levels and B has 4 levels.
Also, I have 8
levels of a factor C. I wish to xyplot( x ~ y | C *A *B,data=data),
I think this is how the lattice conditioning works:
If i'm not mistaken, all possible combinations of C,A,B
, a subset of the data is accordingly taken and x~y is plotted.
However, I
have empty sets for some levels and these are
2007 Dec 01
2
Sweave: Variables in code chunk headers
I would like to be able to do something like this:
<<echo=F,fig=T,width=mywidth>>=
...
@
with mywidth set in a previous code chunk. Is there a way to do this in
Sweave?
(Sorry for two questions in a row, I have been saving these up.)
--
Michael