Displaying 20 results from an estimated 40000 matches similar to: "Lattice on Mac OS X & Strip Labels"
2007 Nov 23
1
formatting POSIXlt object as strip labels in lattice plot
Dear list,
I'm plotting a lattice plot
xyplot(Volume ~ Weight | as.character(DateTime))
where DateTime is a POSIXlt object. This produces strip labels in
the format e.g. "2007-11-15 23:15:00" and panels are plotted in the
correct order. I'd prefer a format "15 Nov 23:15", but if I use
format(DateTime,format="%d %b %H:%M") to do the conversion, then the
2011 Nov 17
1
Introducing \n's so that par.strip.text can produce multiline strips in lattice
Dear all,
I have the following data, which has \\n in place of \n. I introduced \n's
in the csv file so that I could use it in barchart in lattice. When I did
that and read it into R using read.csv, it read it as \\n. My question is
how do I introduce "\n" in the middle of a long string of quoted text so
that lattice can make multiline strips. Hitting Enter which is supposed to
2002 Apr 23
1
Lattice graphics on Mac OS X
Hi, everybody.
I just started using R on Mac OS X. I'm trying both of Carbon and
Darwin version. I used to use S-PLUS on Linux and want to use splom to
do multi-plot.
I looked at both Carbon and Darwin version, but Carbon version doesn't
seem to have Lattice library. I downloaded the binary for Darwin
version. I have XDarwin/OroborOSX installed on my Mac's (G4 Powerbook
and
2008 Aug 25
1
lattice : using both strip and strip.left
Dear all,
I'm routinely using lattice and ggplot2, I wish to create a lattice
theme that looks not too dissimilar to ggplot's defaults so I can
include both graphs in a document with a consistent look.
To illustrate my questions, consider the following example:
> library(ggplot2)
> library(lattice)
>
> # example data
> x <- seq(0, 10, len = 100)
> y1 <-
2008 May 12
1
inserting mathematical symbols in lattice strip
I have tried without success to find a way including the square root symbol
in lattice strips as part of my conditioning labels. I have tried
supplementing by creating a list of vectors using the var.name function
coupled with the expression function used in xlab/ylab.
xyplot(adjusted_Rand_index~cluster|distance_measure, main="Level of
agreement between partitions: Wards Method",
2008 May 12
1
Mathematical annotation in lattice strip: Is it possible?
I have tried without success to find a way including the square root symbol
in lattice strips as part of my conditioning labels. I have tried
supplementing by creating a list of vectors using the var.name function
coupled with the expression function used in xlab/ylab.
xyplot(adjusted_Rand_index~cluster|distance_measure, main="Level of
agreement between partitions: Wards Method",
2009 Mar 23
1
lattice multipanel strip placement - with two factors
Hi,
I'm making a multipanel lattice densityplot figure with 2 factors (3 and
20 classes in each factor) with the following statement (the
type="percent" is there to prevent plotting the actual points which
detract from the figure - is there another way of doing this?):
densityplot(~End-Begin | Type * Chromosome, data=Mon, layout=c(5,12),
xlab="Element
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
2005 Jan 03
1
Black and white graphics and transparent strip panels with lattice under Sweave
What is the most elegant way to specify that strip panels are to have
transparent backgrounds and graphs are to be in black and white when
lattice is being used with Sweave? I would prefer a global option that
stays in effect for multiple plots.
If this is best done with a theme, does anyone have a lattice theme like
col.whitebg but that is for black and white?
I'm using the following
2007 Jul 30
1
add custom strip to lattice plot
Hi,
what is the recommended way of adding a strip to a lattice plot?
In the example below I would like to add the value of mean(y) to a new
strip.:
--8<---------------cut here---------------start------------->8---
library(lattice)
## Small sample data set:
p0 <- xyplot(uptake ~ Type | Treatment, data = CO2)
p1 <- update(p0,
panel = function(x, y, ...) {
2009 Aug 20
1
lattice xyplot strip colors and location
Hi all,
I've been trying (unsuccessfully) to modify an xyplot I created using the lattice package. I would like to change default strip colors and locations.
I started with numeric data in 4 columns, which look like this:
0.25 2 1 32
0.25 2 2 30
0.25 2 3 27
0.25 2 4 23
0.25 2 5 17
0.25 3 1 30
0.25
2011 Nov 23
0
lattice : modifying strip names with 2 strips
Hello R-helpers,
I'm looking for a way to rename strips in lattice plots when I have more than one conditionning variable.
Here's a dummy example taken from http://casoilresource.lawr.ucdavis.edu/drupal/node/510
library(lattice)
f <- function(a, b, x) {p <- (exp(a + b*x)) / (1 + exp(a + b*x))}
x.seq <- seq(-5, 5, by=0.5)
x <- rep(x.seq, 9)
a.seq <- c(-2, 0, 2)
b.seq
2009 Apr 01
0
Lattice plot with an extra strip showing group weights
Dear r-help,
How can I add a strip to show group weights using lattice package? For
example, in the following code, I'd like to using "wt" variable in a trip
to demonstrate the relative size of groups.
(Following is just the simplest form to demonstrate the question. A
conditional variable will be added to the bwplot in real problems).
#####################################
2008 Jul 31
1
strip names lattice graphics
R-helpers,
I'm having difficulty with customizing strip names for a lattice graphic.
Here is an example using the iris data set :
xyplot(Sepal.Length+Sepal.Width~Petal.Length,groups=Species,data=iris)
## I'd like to change the 2 strip names to "Length" and "Width" for example, this is what I've tried :
2009 Mar 10
1
Centering multi-line strip text in lattice
I'm having trouble centering multi-line strip text in lattice. As the
code below demonstrates bounding box of the text is centered within
the strip, but the first line isn't centered in relation to the longer
second line. The "adj" argument to par.strip.text doesn't seem to do
much. Suggestions?
a=data.frame(
x=rep(1:10,2)
,y=rep(1:10,2)
,z=rep(c('First Line\nLonger
2012 Nov 18
2
[lattice] format and rotation of strip text
Thanks to the lattice gurus on this list, and having reference to the
excellent open-access Sarkar 2008
ISBN 978-0-387-75968-5
e-ISBN 978-0-387-75969-2
http://dx.doi.org/10.1007/978-0-387-75969-2
I now know how to label lattice panels by variable value: see thread
starting @
https://stat.ethz.ch/pipermail/r-help/2012-November/329450.html
(and demonstrated below). This allows me to use
2001 Nov 23
1
Changing strip widths in lattice plots
Hello R users,
I'm using xyplot (lattice) to plot some data. Unfortunately, the text that goes
into each strip is often too big to fit. For instance, one of the factors may
be labelled "Satisfaction with waiting time" which is too wide to fit. If I use
split.string() to wrap it onto two lines it is then too high to fit in the
strip. I'd prefer to apply split.string on the
2011 May 27
1
lattice - change background strip color in one panel
Hello,
I would like to change the background color in only -one- of the strips in a
multipanel lattice xyplot, from the default yellow-brown color.
Until now, I only managed to change the background strip color in all of the
strips using the par.settings, but I do not get it to work for only 1 strip.
Below is the current code I am using.
The resulting plot is here:
2009 Aug 25
2
allowing line wrap for long strip text in xyplot (lattice)
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 (yearmo=a time measure)
and conditioning variable (indf - factor describing industry) -- i.e., (emp
~ yearmo | indf), where all three variables are in a dataframe. The
2009 Dec 04
1
Lattice : Help with changing the labels of x-axis in respective panels
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 Distance
1 1 1 PeMm261 0.0000
2 1 2 Xtxp8 10.1013
..
20 1 20 EbMi148 210.3099
21 1 21 Xtxp25