similar to: Note: "The default device has been opened to honour attempt to modify trellis settings"

Displaying 20 results from an estimated 5000 matches similar to: "Note: "The default device has been opened to honour attempt to modify trellis settings""

2004 Nov 10
1
Basic Q on coercing factors in data frames to numeric
Hi there, I'm running R 2.0.0 on Windows 95. I'm trying to coerce a column of factors within a data frame to numeric. This is not a problem with a vector, but I can't find a way to index a column within a data frame to achieve this. All the examples from 'An introduction to R', 'S-plus 6 programmers guide', etc, use simple vectors. I'm sure I'm missing
2006 Jun 01
1
Help with evaluation of expressions
Hello all: I have searched through the help files and I have been unsuccessful in solving this problem. I am trying to create a small wrapper function that will go around a call to a plot function and create a windows metafile in the directory and also write the name of the file to a text file. The purpose is to efficiently bring a large number of plots into powerpoint. I am using
2009 Oct 28
3
variable labels to accompany data.frame
Often it is useful to keep a "codebook" to document the contents of a dataset. (By "dataset" I mean a rectangular structure such as a dataframe.) The codebook has as many rows as the dataset has columns (variables, fields). The columns (fields) of the codebook may include: ? variable name ? type (character, factor, integer, etc) ? variable label
2004 Oct 19
2
Sweave and Trellis in R 2.0.0patched (Windows)
I've been using the following code to plot using Sweave in version 1.9.1 library(RODBC) library(lattice) channel <-odbcConnectExcel("h:/water.xls") data <- sqlQuery(channel,"select * from `Sheet1$` where Test = 'TOC' and (Valve='5010-05' or Valve='8030-V26' or Valve='1180-08' or Valve='5040-08')") odbcClose(channel) srt <-
2012 May 19
3
Q - scatterplot, plot function & trellis linear regressions???
Hi R-listers, Q1) What is the difference between the scatterplot and plot function? Q2) I am able to make a graph with the scatterplot function: scatterplot(DevelopIndex ~ Veg, + data = Turtle, + xlab = "Vegetation border (m)", + ylab = "Embryonic development index") And have been successful. But I do not know if the lines are for:
2011 Apr 13
2
Dump the "source code" of data frame
Dear R experts, I remember a similar function existed and have been mentioned in R-help before. I tried my best to search but I really can't find it out. suppose I have an data frame like this: > somedata <- data.frame(age.min = 1, age.max = 1.5, male = TRUE, l = -1.013, m=16.133, s=0.07656) In order to back up the data and I don't want to use write.table(), I would like to back
2006 Jun 29
1
Question on memory allocation & loop
Hello All, I am trying to work on writing the following piece of (pseudo) code in an optimal fashion: ---------------------------------------------------- # Two data frames with some data a = data.frame(somedata) b = data.frame(somedata) for(i in 1:nrow(dt) { # Merge dates for a given date into a new data frame c = merge(a[a$dt==dt[i],),b[b$dt == dt[i],], by=c(some column)); }
2013 Sep 23
2
[LLVMdev] LLVM ERROR: expected relocatable expression
Hi Eli, Slightly changed the example :- .section somedata .Ltmpa: .word 100 .Ltmpb: .word 60 .Ltmpc: .word 40 .Ltmpd: .word (.Ltmpa-.Ltmpb)-.Ltmpc The GNU assembler properly handles the above. $as -c x.s -o x.o $readelf -x 4 x.o Hex dump of section 'somedata': NOTE: This section has relocations against it, but these have NOT been applied to this dump. 0x00000000 64003c00
2013 Sep 23
0
[LLVMdev] LLVM ERROR: expected relocatable expression
On Sun, Sep 22, 2013 at 9:43 PM, Shankar Easwaran <shankare at codeaurora.org>wrote: > Hi Eli, > > Slightly changed the example :- > > .section somedata > .Ltmpa: > .word 100 > .Ltmpb: > .word 60 > .Ltmpc: > .word 40 > .Ltmpd: > .word (.Ltmpa-.Ltmpb)-.Ltmpc > > The GNU assembler properly handles the above. > > $as -c x.s -o x.o >
2004 Jul 18
2
gray background in png
Hi all, I'm having a problem creating png images with trellis.device. I would like to create many plots with a white background using a sequence number in the file argument (i.e. "%02d"). The first plot is as expected with a white background. However, the second and all subsequent plots have a gray background. I would like all plots to have a white (or transparent)
2006 Mar 11
1
Layout, xyplot and saving in file
Dear all, I am trying to use layout with xyplot and save the plot in a file. The saved file contains only the last panel (used jpg, wmf and pdf options in the savePlot function) I am not familiar with the graphic file formats and don't know if they can handle multipage output. If not do I need to loop by ndose in the following script ? Here is my script:
2007 Sep 18
1
Best practices - R CMD check and vignettes
Hi, I have a package that contains two vignettes that both use saved objects in the examples directory of the package. With previous versions of R I could have a code chunk in the vignette like this: <<echo=false>>= load("../examples/somedata.Rdata") @ followed by a code chunk like <<eval=false>>= foo <- bar("data") @ that simulated the actual
2005 May 03
3
Lattice dotplot with symbols sized and colored
Apologies if this is a naive beginners question. I am trying to create a dotplot with the lattice dotplot function in which my dots are colored differently depending on if positive or negative and sized by sp.nc.bdrs.data$mwZ I have tried... dotplot(sporder ~ cvarorder | direct, data=sp.nc.bdrs.data, cex=abs(sp.nc.bdrs.data$mwZ * 0.05), xlab="climate variables",
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.
2011 Jun 13
2
use variable value to create new variable name
Hi, Is it possible (and how) to use a variable value to create a name of a new R variable? I want to do something like this: for (i in 1:3) { newvarialbe_#i# = somedata } where #i# is a value stored by i. In the first loop, there will be newvariable_1, in second newvariable_2 and so on. Thanks in advance, Maciek [[alternative HTML version deleted]]
2008 Jan 30
0
Samba hanging from time to time
I am having some trouble with Samba. It was working fine on an old server with 3.0.21. Now I have updated to 3.0.28 (via 3.0.25) and a bigger fatter faster server. There are two problems. Firstly the new server seems slower than the old one, and some users are experiencing intermittent data loss via MS apps such as Word or Excell crashing. The system runs on Arch Linux, with a slightly
2008 Feb 05
2
Samba crashing word and excell?
I am having some trouble with Samba. It was working fine on an old server with 3.0.21. Now I have updated to 3.0.28 (via 3.0.25) and a bigger fatter faster server. There are two problems. Firstly the new server seems slower than the old one, and some users are experiencing intermittent data loss via MS apps such as Word or Excell crashing. The system runs on Arch Linux, with a slightly
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,
2005 Apr 07
4
sweave bwplot error
Hi I use sweave and have a problem with the following figure, but not with other figures: tt <- data.frame(c("a", "b", "c"), c(1.2, 3, 4.5)) names(tt) <- c("x1", "x2") bwplot(x2 ~x1, data = tt) ok now in sweave: \begin{figure}[H] \begin{center} <<echo=FALSE, fig=TRUE, height=5, width=10>>= lset(col.whitebg()) bwplot(x2 ~x1,
2003 May 08
1
All possible subset selection?
Hello, I am wondering if there is a function in R to do all possible subset selection, e.g. using AIC/BIC. It seems to me the function step can not do all possible selection. I am also want to know why the following functions give me different results. It seems I missed some points here. lm <- lm(y ~., data=somedata) AIC(lm) extractAIC(lm) Many thanks, Zheng Huang