similar to: Using windows() and jpeg()

Displaying 20 results from an estimated 3000 matches similar to: "Using windows() and jpeg()"

2007 Nov 28
2
Dates in R
Hi, I have dates in the following format: 4/8/2006 (MM/DD/YYYY). I need to have R compare date A to date B to figure out which one is more recent. Is there a way to do that? Simply using the '>' or '<' signs doesn't seem to work. I think in this case R treats '/' as a division sign and gives me erroneous results. Thanks a lot for your help. Irina
2005 Mar 09
3
function in order to plot the same graph to postscript and pdf
Hi, I've written a function in order to plot the same graph in a postcript and in a pdf file. Unfortunately, the second graph is always empty, i.e.: plot.both <- function{myplot, filename}{ pdf(file=paste(filename, ".pdf", sep="")) myplot dev.off() postscript(file=paste(filename, ".eps", sep="")) myplot dev.off() } yields in a
2008 Nov 16
1
confint.glm(...) fails for binomial count data format
##Q1. confint.glm(...) fails for an example of HSAUR data("womensrole", package = "HSAUR"); ## summary(womensrole); womensrole_glm_2 <- glm(fm2, data = womensrole,family = binomial()) ## summary(womensrole_glm_2); confint(womensrole_glm_2); ## -------Fail--------- # Waiting for profiling to be done... # Error in if (any(y < 0 | y > 1)) stop("y values must be 0
2003 Jun 12
1
Problems for runing R in BATCH to generate PNG/JPEG files
Hello all: After I compile the R-1.7 with the follows in Linux7.3: configure --with-x --with-jpeglib --with-libpng --x-includes=/usr/X11R6/include --x-libraries=/usr/X11R6/lib and make and make install. The R is able to generate PNG/JPEG files from the command line. However, when I put the same commands in a batch file and run: R --gui BATCH R.Batch.file It gave me a error in the
2008 Aug 13
2
mob(party) formula question
I try tu use mob() with my data.frame ('data.frame': 288 obs. of 81 variables; factors, numerics and ordered factors) My response is a binary variable and I should use for modelling a logistic regression (family=binomial). I read in the "MOB" Vignette that I could use a formula like this if I would like to have only partitioning variables apart from the response.
2008 Nov 12
2
odfweave
Dear all, I am trying to use the function odfWeave. Unfortunately I cannot get beyond the folllowing error message: " Error in odfWeave("Example3.rnw", "Example3.odf") : Error unzipping odt file " Can anybody tell me, how to use this function? Thanks, Irina Ursachi.
2008 Aug 20
3
Writing Rcmdr Plugins
Dear all, I am trying to write a plugin for the RCommander and having troubles understanding how to actually do that. I have read Mr. Fox's tutorial about writing Rcmdr plugins and though.... it seems to me that some steps are missing. I would like to know, whether there are some Commands which generate a plugin package out of a given library. Or do we just have to attach the .First.lib
2009 Sep 20
1
Truncated plot in the output file
Dear all, I made a large plot and wanted to save it as a tif file. I first opened and specified the size of the window. windows(12,17,rescale="fixed") Then I plot a heatmap using heatmap() when I saved the plot by using "Save as" in the file menu or savePlot("heatmap", type="tif"), the plot in the output tif file is truncated. Only the upper part of the
2010 Dec 10
2
45 Degree labels on barplot? Help understanding code previously posted.
Dear colleagues, i found a line or two of code in the help archives from Uwe Ligges about creating slanted x-labels for a barplot and it works well for my purposes (code below). However, I was hoping someone could explain to me precisely what the code is doing. I'm aware it's invoking the text command, and I know the first ttwo arguments to text are x and y co-ordinates. I'm also
2009 Jun 02
1
Plot with different x axis
dear, I am trying to plot a standard plot, but I want the x axis to be 1,2,4,8,16 with equal intervals between them on plot. I will appreciate some help. Thank you, Irina Irina Foss Environmental Research Institute North Highland College UHI Millennium Institute Castle Street Thurso, Caithness Scotland KW14 7JD United Kingdom Tel: +44 (0) 1847 889 587 Fax: +44 (0) 1847 890 014
2005 Oct 03
2
grob questions
If I run the following example from: http://www.stat.auckland.ac.nz/~paul/grid/doc/grobs.pdf > grid.newpage() > pushViewport(viewport(w = 0.5, h = 0.5)) > myplot <- gTree(name = "myplot", children = gList(rectGrob(name = "box", + gp = gpar(col = "grey")), xaxisGrob(name = "xaxis"))) > grid.draw(myplot) >
2008 Dec 18
1
RcmdrPlugin doesn't work under R280
Dear all, Some time ago, I have build a RcmdrPlugin.* under R.2.7.1 and the loading of my plug-in into R was running OK (back then I was using Rcmdr version 1.3-5). After updating the R and Rcmdr to versions 2.8.0, 1.4-5 respectively, I have problems loading the plug-in. Does anybody know why? I have tried to detect the problem by tracing back errors that might have occurred, but couldn't
2010 Jul 05
2
Issue with write.table and read.table : I'm not getting out what I put in
Hello, I am trying to save a large matrix of values in a file. My problem is that I am writing write.table(allpos,'control_chr1.txt', dec=".") and then I want to check it with test2=read.table('control_chr1.txt') sum(test2[,2]==allpos[,2]) This last number is lower than the length of the test2[,2] vector. This is really annoying me because I can't figure out why I
2006 Mar 06
3
how to make plotmath expression work together with paste
Recent questions about using plotmath have renewed my interest in this question I want to have expressions take values of variables from the environment. I am able to use expressions, and I am able to use paste to put text and values of variables into plots. But the two things just won't work together. Here is some example code that shows what I mean. plot(NA,xlim=c(0,100),ylim=c(0,100))
2009 Apr 04
2
help with formula and data= argument
Sorry for posting this twice, but I still have not solved this problem and am hoping for some assistance. I am attempting to write a function that is flexible enough to respond to the user providing a formula (with a data= argument) or not (similar to plot(x,y) versus plot(y~x,data=data)). I have found a method to work with this in a simple case but am having trouble determining how to
2008 Aug 08
2
gridBase and new.page() / grid.newpage()
Hello all, I'm trying to write a function using the gridBase package. I'd like to push several base subplots to a larger plot constructed with grid. However, I'm having trouble getting consistent results when running the function when the plotting window (quartz) is closed, when it is left open and the plot function is repeated to the same window, and when the output is saved to a
2011 Sep 19
2
[LLVMdev] LLVM,metadata for namespaces
just off the cuff, have you actually created and used any names in the namespace. I don't know for sure, but it wouldn't surprise me if the namespace doesn't exist independently of any uses. ------------------------------ From: Irina Lipov Sent: 9/19/2011 3:16 AM To: llvmdev at cs.uiuc.edu Subject: [LLVMdev] LLVM,metadata for namespaces Hello, I am wring front end for compiler ,the
2009 Sep 02
1
get function to return object "name"?
Dear list, I've written a function that plots subjects. Something like: myplot <- function(subject) { plot(subject) } Subjects are vectors, e.g. ... s1 <- c(200,200,190,180) ... and plotting them works fine, e.g. ... myplot(s1) Now I want to have "s1" etc appear in the plot title, but I don't know how to refer to this generically (the object "name"? I tried
2009 Sep 14
2
How to set default plotting colors by treatment?
Dear R-helpers, I have a number of dataframes that looks something like this: mydfr <- data.frame(treatment=c(rep("A",3),rep("B",3)), Xmeas=1:6, Ymeas=c(2,4,3,3,5,6)) # except with many more variables, which I plot all the time colored by treatment to quickly check things: with(mydfr, plot(Xmeas, Ymeas, pch=19, col=c("blue","red")[treatment])) # I
2010 Dec 17
2
Nested layout()
Hello, Is it possible to call a graphing function that uses layout() multiple times and layout those outputs ? Here's a minimal example : myplot <- function() { layout(matrix(1:2, nrow=1), widths = c(1, 1)) plot(1:10) plot(10:1) } layout(matrix(1:2), heights = c(1, 2)) myplot() myplot() -------------------------------------- Dario Strbenac Research Assistant Cancer Epigenetics Garvan