Displaying 20 results from an estimated 9000 matches similar to: "lattice background color"
2003 Feb 28
2
lattice and fitted function error
Platform: WIN2000
Version of R: 1.6.2
I'm interested in plotting fitted values in a trellis xyplot. I believe the
following should work; however, I only get the points (not the fitted
lines).
library(lattice)
trellis.device(bg="white")
xyplot(MULTDV~TIME|SUBNUM,data=TEMP,
panel=function(x,y){
panel.xyplot(x,y)
lines(x,fitted(lm(y~poly(x,1),na.action=na.omit)))
2003 Apr 09
3
Reading in multiple files
I apologize if this is a FAQ -- I kind of recall seeing something along
these lines before, but I couldn't find the message when I searched the
archives.
Problem:
1. I have hundreds of small files in a subdirectory ("c:\\temp") and I would
like to combine the files into a single data frame.
2. Individually, it is easy to read each file
2002 May 28
0
Lattice background color answer
It turns out that there is a color named "transparent" that does the trick
with the trellis device. Thanks to Brian Ripley for pointing it out.
trellis.device(bg="transparent")
My original post is below, but it boils down to "how can I make a trellis
graph that doesn't contain any background color?" This can be useful when
you paste graphics into documents
2002 Oct 08
2
Orthogonal Polynomials
Looking to the wonderful statistical advice that this group can offer.
In behavioral science applications of stats, we are often introduced to
coefficients for orthogonal polynomials that are nice integers. For
instance, Kirk's experimental design book presents the following
coefficients for p=4:
Linear -3 -1 1 3
Quadratic 1 -1 -1 1
Cubic -1 3 -3 1
In R orthogonal
2002 Oct 09
1
Summary Orthogonal Polynomials
As usual, the R newsgroup set me straight (thanks to Douglas Bates, Robert
Balshaw and Albyn Jones).
There is really no difference between using orthogonal polynomials of the
form:
Linear -3 -1 1 3
Quadratic 1 -1 -1 1
Cubic -1 3 -3 1
Versus
> poly(c(1:4),3)
1 2 3
[1,] -0.6708204 0.5 -0.2236068
[2,] -0.2236068 -0.5 0.6708204
[3,] 0.2236068
2006 Jan 14
2
change lattice panel background color
I can't find a way to change just the panel background color in lattice.
I would like NA regions in levelplot() to appear black. I've tried the
trellis.par.set() stuff, but it it makes the background of the whole
graphic black.
Thanks,
Scott Waichler
Pacific Northwest National Laboratory
scott.waichler _at _ pnl.gov
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:
2003 Feb 01
1
matrix subscripts in replacement
I'm reluctant to draw the S-PLUS and R comparison (these are different
programs after all), but could someone tell me why the following matrix
substitution works in S-PLUS, but not R. I'm curious because matrix
substitution is a really slick way to "cleaning up" columns of data in data
frames. For example, in the following I change values of 1 to values of 10,
but only for
2007 Nov 30
1
Set panel background color in a multi-group trellis plot
Hi everyone,
I am trying to change some of the default colors in a
multipanel-multigroup lattice graphic, but when I change the panel color
to white, the only group that is plotted is the last one, as panel.fill
overwrites all the previous ones. Is there any way to set the panel
background color for the first panel to a color and keep the rest
transparent?
My code looks like this:
#first set
2011 Mar 05
3
Change panel background color in spplot()
Hi!
How does one change the background color of the map-panel in spplot()?
Example:
library(sp)
data(meuse.grid)
gridded(meuse.grid) = ~x+y
spplot(meuse.grid, "part.a")
How would I get another background-color for the map-panel (but not for
the whole plot) here?
Thank you!
Marcel
2003 Jun 19
3
Background color(s) for groupedData plot
I've been using par() to check the graphics parameters
associated with both plot(<fitted linear model>) and
plot(<grouped data object>). AFAIK the only differences
are in the $cxy, $usr, $xaxp, and $yaxp parameters but
the background color for the grouped data plot is grey
while the linear model plot has a white background.
When I've tried par(bg = "white") prior to
2004 Oct 01
2
Background color Windows device (newbie)
Dear R Gurus
Just started on R !
Using xYplot from Hmisc (R 1.9, W2K) I get a grey/blue background that I
would like to change to white (ie no background) or may be to another
color.
Tried to do that with par(bg) but only changed the color of the trellis
heading.
What's the right command to do that ?
Kind regards, JL
PS if anyone has nice default settings for win device please let me
2010 Nov 26
3
lattice: strange behavior (?) when using trellis.device(color=FALSE)
Dear expeRts,
I am not sure if I found a bug...
I would like to create a function that itself creates a lattice plot without
colors. Following http://www.mail-archive.com/r-help at r-project.org/msg64699.html
I use trellis.device() to set the colors to FALSE. Whenever I call the minimal
example below *with* trellis.device(), Quartz opens a window (I am working on a
MAC), which it shouldn't,
2006 Dec 04
2
background color in strip.custom()
Hi all,
how can I change the background color in lattice strips according to a
factor level, eg:
library(lattice)
x <- rnorm(100)
y <- sqrt(x)
f <- gl(2, 50, c("A", "B"))
xyplot(y ~ x | f)
I like to change the background color of the strips according to the
levels in f and tried several things like this with no success:
xyplot(y ~ x | f,
2002 Apr 18
2
Background in lattice plots using dotplot()
platform i586-pc-linux-gnu
arch i586
os linux-gnu
system i586, linux-gnu
status
major 1
minor 4.1
year 2002
month 01
day 30
language R
I can't seem to get rid of the slightly green background when I use
dotplot(). It shows on the screen in the
2004 Oct 22
3
dotplot & lattice problems: y axis values and bg color output in jpg
I have a linux system with Fedora Core 2 and R-2.0.
I was comparing plots made with plot() and dotplot() and discovered a
problem. Although the dots are positioned correctly, the numerical
labels in the dotplot y axis are not correct.
I put copies here:
http://lark.cc.ku.edu/~pauljohn/R/plotTrouble1.jpg
That is the "correct" one from plot, with the higest value on y showing
at 18.
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]]
2005 Oct 09
1
background color of xyplot
Dear All,
I am wondering if there is a way to change the color of the panels of the xyplot (lattice package) from "gray" to "white" ...... Because the printing of the xyplot's graph is not visible with the gray color ... I've seen the xyplot help but without any success
Thanks lot in advance,
Bernard,
---------------------------------
2003 Jun 16
1
grid background color
Dear all,
I am trying to run cloud function in lattice library under r-1.7, and I wlways get gray background. I've tried to chang it by set "...par.box=list(col="white")"
or by gpar(background="white") but no result.
How do i do it?
Thanks in advance,
Ron
2007 Jun 06
2
Multiple color schemes for barchart (lattice)
Hello R-help.
I am trying to make a stacked barplot where the color of the sections of
each bar depend on another variable.
> myData[1:11,]
score percent marker cellType Malignant
1 0 100.00000 ESR1 (ER) Bladder.M(5) TRUE
2 0 80.00000 PAX8 Bladder.M(5) TRUE
3 1 20.00000 PAX8 Bladder.M(5) TRUE
4 0 100.00000 ESR1 (ER) Brain.N(3) FALSE
5 0