Displaying 20 results from an estimated 7000 matches similar to: "superpose.polygon, panel.polygon and their colors"
2006 Apr 24
1
trellis.par.get without opening a device?
I am using the Deepayan's Sweave trick to set graphics parameters for all
graphs:
ltheme = canonical.theme(color=TRUE)
sup = trellis.par.get("superpose.line")
ltheme$superpose.line$col = c('black',"red","blue","#e31111","green",
"gray")
....
Works perfectly, there is only a minor nuissance that trellis.par.get opens
a device
2008 Oct 15
2
Lattice key title color
Dear R users,
is there a way to define the color of the title for the legend in
lattice?
The help page on xyplot has a lot of details on key options just as the
new book, but no mentioning of a color attribute for the title.
Should I use ltext or is there any other way?
Best wishes,
Erik
[[alternative HTML version deleted]]
2009 Feb 11
2
changing settings on a barchart (lattice)
Hello!
I apologize - I never used lattice before, so my question is probably
very basic - but I just can't find the answer in the archive nor in
the documentation:
I have a named numeric vector p of 6 numbers (of the type 6 numbers
with people's names to whom those numbers belong). I want a simple bar
chart.
I am doing:
library(lattice)
trellis.par.set(fontsize=list(text=12)) #
2008 Jan 29
3
on trellis.par.set/get (reproducing figures from Pinheiro & Bates)
Dear R users,
I would like to exactly reproduce a figure like the 1.5 or 1.9 or 4.13
from the book
Mixed effects models in S and S-Plus.
Not for the sake of it, but because I have my own data I would like to
plot in that fashion
(no colors)
If I write
plot(ergoStool)
I can get a good informative plot with colors, but I would like to have
a B&W one instead.
I've played a little with
2009 Apr 07
2
xyplot - label one line
Hi All,
I have a panel xyplot with 2 lines in each panel. I'd like to label one line
only but don't know how to do this. The code below labels both lines. Any
ideas how I could change it to show the y-values of only one of the lines?
Many thanks!
xyplot(apples + bananas ~ year | category, data=fruit, as.table=TRUE,
par.strip.text=list(cex=1.2,font="bold"),
par.settings =
2011 Oct 13
0
xyplot() and confidence interval polygons
Dear all,
I'm trying to replicate the panel function behaviour that Deepayan and
others discuss here:
https://stat.ethz.ch/pipermail/r-help/2007-April/130779.html
and Oscar Lamigueiro refers to here and provides sample code for:
http://www.r-bloggers.com/confidence-bands-with-lattice-and-r/
where a polygon is generated around lines on panels to display the
confidence interval bounds for
2009 Nov 27
2
layers in xYplot of Hmisc
In the "filled bands" part of xYplot of the Hmisc package, is there a way to
have multiple bands with multiple lines? or does it just allow one for now?
So I had an example bit ago had a made up line and CI, now if I wanted to
make a second line with a CI filled in can I put them on the same plot?
x<-seq(1,10,1)
y<-seq(1,10,1)
ci<-y*.10
ciupper<-y+ci
2010 Aug 13
1
Polygon Graph in lattice/ lattice extra
Hi, I'd like to draw a polygon graph. I used the package lattice extra which
includes a function for that (see:
http://latticeextra.r-forge.r-project.org/#panel.xyarea&theme=default). But
i don't want the polygon ending with its filled border at the x-axis (like
in my code). Instead it should be rotated about 90 degrees and end with its
filled border at the y-axis.
I'm pleased
2002 Dec 16
1
Lattice: panel.superpose function does not pass subscripts and groups arguments (PR#2377)
Full_Name: Volker Franz
Version: 1.5.1
OS: Debian-Linux
Submission from: (NULL) (134.176.77.64)
Hi,
working with the panel.superpose function, I found out that this
function does not pass the subscripts and groups arguments to
panel.groups functions.
In my view, this seems an unnecessary restriction, because the
subscripts-mechanism which allows to access the original data should
also work if
2003 Apr 11
1
lattice bug? (PR#2765)
I've been experimenting with the lattice graphics in chapter 3 of MASS. The
code to produce figure 3.14 is:
data(crabs)
library(mva)
lcrabs.pc <- predict(princomp(log(crabs[,4:8])))
crabs.grp <- c("B", "b", "O", "o")[rep(1:4, rep(50,4))]
splom( ~lcrabs.pc[, 1:3], groups = crabs.grp,
panel = panel.superpose,
key = list(text =
2007 Jul 28
2
lattice grayscale "theme"
Hi,
is there a grayscale setting for lattice plots?
I like the default color settings. I also like the settings that are
available for setting black and white with something like this:
--8<---------------cut here---------------start------------->8---
ltheme <- canonical.theme(color = FALSE) ## in-built B&W theme
ltheme$strip.background$col <- "transparent" ##
2013 Jun 10
1
Using Lattice, LatticeExtra - Hide right and top axes in multipanel plots
Dear Rxperts,
How do I hide the top and right axes in multiple panel plots? A couple of
examples are provided below.. Would highly appreciate appreciate your
assistance..
#Example 1
library(latticeExtra)
xyplot((1:200)/20 ~ (1:200)/20, type = c("p", "g"),
scales = list(x = list(log = 2,alternating=0), y = list(log =
10,alternating=0)),
xscale.components =
2009 May 08
2
display data ( text) on leveplot / Superpose panel
I am trying to display data ion top of colored rectangle on the same levelplot. While using superpose the shape and symbol for levelplot changes to small circle. I am unable to figure what exactly I am doing wrong... It may be straightforward solution... .I will appreciate help to fix this issue.
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
2008 Aug 16
4
Lattice: problem using panel.superpose and panel.groups
Hi. I'm embarking on my first attempt at creating my own panel
function for lattice graphics, and despite all of my online research
and pouring through the documentation, I cannot figure out how to
solve my particular problem. Hopefully, a generous fellow R user can
help.
I have some data that is split into two groups: some "actual" data,
and some simulated data,
2013 May 02
3
Lattice xyplot multipanels
Derar Rxperts,
I have a strange situation.. I see curly brackets around "strip.levels" in
multipanel strips while using lattice::xyplot. .How do I get rid of the
curly brackets? For some reason, I am not able to reproduce the problem
using an example below...
Any suggestions are highly welcome!
Thanks,
Santosh
q <-
2004 Nov 29
1
Call to trellis.focus(); thenpanel.superpose()
The following works fine with the x11 device, though it
may well be that an initial plot is overwritten. With a pdf
or postscript device, I get two plots, the first of which
still has the red border from having the focus, while the
second is the plot that I want.
library(lattice); library(grid)
plt <- xyplot(uptake ~ conc, groups=Plant, data=CO2)
print(plt)
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
2002 Sep 27
3
Inverting polygon
Hi
I'm using polygon to delimit an area on a plot. However my intention is
to "superpose" the outside area of the polygon (I want to cover an
extrapolation of contour(interp(...)).
Is there an easy way of doing it ?
Thanks
EJ
-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
r-help mailing list -- Read
2007 Jun 18
1
Second y-axis in xyplot (lattice) where y1 and y2 have different ranges
Hi all,
I realize this is asking a lot of lattice, but I want to add a second y
axis inside a xyplot and have y1 and y2 have different ranges. Given dat
below, I can add a second y axis by overlaying a new plot with
par(new=T) and label axis 4 with standard graphics. I've seen an example
for doing something similar in xyplot even though Deepayan has indicated
that lattice isn't the right