similar to: Lattice background color answer

Displaying 20 results from an estimated 5000 matches similar to: "Lattice background color answer"

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)))
2002 May 27
1
lattice background color
I'm sure there is a simple answer to this question, but it stumps me so far. I've been using R to create graphic images and paste them into other programs (Word, PowerPoint). Recently, I've been using lattice (wonderful package), but I can't figure out how to create graphs in lattice that don't have a background color -- that is, my graphs carry over the grey background if I
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 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
2002 Nov 21
0
Analysis of Data with Observation Weights Revisited
In lm and glm, the weights command should only be used when the variances of the observations are inversely proportional to the weights. Recently, however, a question came up regarding how one could estimate lm and glm models with weights where the weights refer to number of observations (counts). Because lm and glm do not handle this case, SE values will be wrong if one uses the weight command
2003 Mar 03
0
lm, gee and lme
Behavioral science data is often collected from nested structures (students in schools, in districts, etc.). This can produce nonindependence among responses from individuals in the same groups. Consequently, researchers are advised to model the nested nature of the data to avoid biases in SE estimates. Failing to account for nonindependence can lead to SE estimates that are too large or too
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
2003 May 30
2
Extracting Vectors from Lists of Lists Produced by Functions
If you found my subject heading to be confusing then I'm sure you'll enjoy the example I've included below. I find the apply type functions to be wonderful for avoiding loops but when I use them with existing functions, I end up using loops anyway to extract the vectors I want. I would appreciate it if someone could show me how to avoid these loops. Thanks. EXAMPLE:
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
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
2005 Jun 01
0
RESOLVED: R GUI for Linux?
1) As long as the developer version of tcltk is installed, I now have no problem compiling R with tcltk support on Fedora Core 3. After extracting the gunzipped directory, I switch to the new directory and execute the following two commands: ./configure ----enable-R-shlib make 2) After compiling JGR as specified on their web site, the JGR program is initialized with the 'run' file.
2005 Sep 27
1
Simulate phi-coefficient (correlation between dichotomous vars)
Newsgroup members, I appreciate the help on this topic. David Duffy provided a solution (below) that was quite helpful, and came close to what I needed. It did a great job creating two vectors of dichotomous variables with a known correlation (what I referred to as a phi-coefficient). My situation is a bit more complicated and I'm not sure it is easily solved. The problem is that I must
2006 Jun 28
1
Simulate dichotomous correlation matrix
Newsgroup members, Does anyone have a clever way to simulate a correlation matrix such that each column contains dichotomous variables (0,1) and where each column has different prevalence rates. For instance, I would like to simulate the following correlation matrix: > CORMAT[1:4,1:4] PUREPT PTCUT2 PHQCUT2T ALCCUTT2 PUREPT 1.0000000 0.5141552 0.1913139 0.1917923 PTCUT2
2008 Oct 03
1
question on xyplot
Hi List, I have the following problem: I am using the multilevel package and make.univ function for available in the package and then xyplot from lattice and I want to know how could I be able to use the ?coefficient? for the straight line that passes the data ? Example from help: library(multilevel) data(univbct) #a data set already in univariate or stacked form for job satisfaction
2004 Sep 21
2
Bootstrap ICC estimate with nested data
I would appreciate some thoughts on using the bootstrap functions in the library "bootstrap" to estimate confidence intervals of ICC values calculated in lme. In lme, the ICC is calculated as tau/(tau+sigma-squared). So, for instance the ICC in the following example is 0.116: > tmod<-lme(CINISMO~1,random=~1|IDGRUP,data=TDAT) > VarCorr(tmod) IDGRUP = pdLogChol(1)
2010 Jun 22
1
NO ANSWER before playback or background function?
hi,all i find in asterisk 1.6.2.1, before play a sound file use playback or background, it will answer the channel first. but i want to answer the channel when dial someone and pick up the phone.not play a file. i know there are some params such as 'noanswer' for playback or 'n' for background can not answer before play a file. but it is not always take effect on my tests.as it
2007 Oct 16
1
Setting background color on a menu bar?
Thank you all for your help with my previous question. Now I have a question on setting the background color of a menu bar: can it be done? I''ve experimented thus: menuBar = Wx::MenuBar.new() menuBar.set_background_color( Wx::WHITE ) But alas, it seems to have no effect. (I''m using wxruby-1.9.0-i386-mswin32 with ruby 1.8.6) Thanks much!
2008 Sep 13
1
QCC - Change Background Color and Remove X Axis Text
Hi, I am working with QCC and would like help with the following: a) Change the color of the background. I tried bg="#FFFFFF" in par and also in qcc and it did not work. b) I want to remove the X Axis Text (i.e. 1, 2, 3 ... n) -- but xaxt="n" does not work in qcc. Thanks -- View this message in context: