similar to: xyplot question

Displaying 20 results from an estimated 9000 matches similar to: "xyplot question"

2009 Mar 21
2
factor with numeric names
Hi all, I have a pretty basic question about categorical variables but I can't seem to be able to find answer so I am hoping someone here can help. I found that if the factor names are all in numbers, fitting the model in lm would return labels that are not very recognizable. # Example: let's just assume that we want to fit this model fit <- lm(height ~ age + Seed,
2004 Nov 07
1
rgl on Mac OS
Hi, It seems like a number of people on this list can install rgl but have problem loading it. I found myself in the same situation too. I have tried the workaround of removing /usr/X11R6/lib from DYLD_LIBRARY_PATH, but it doesn't seem to work for me, I am still getting the same error (that everyone else seems to get). Can anyone give me some ideas on what else to try? I have Mac OS 10.3.5,
2011 Dec 21
1
Is there a way force hiding of all messages when calling library()?
For example, if I call "library(spam)", I would get messages like this Package 'spam' is loaded. Spam version 0.27-0 (2011-08-17). Type demo( spam) for some demos, help( Spam) for an overview of this package. Help for individual functions is optained by adding the suffix '.spam' to the function name, e.g. 'help(chol.spam)'. Attaching package: ?spam? The
2010 Nov 23
2
Lattice and Quartz
I ran this script in a source file on my Mac: library(lattice) year <- 1900:2000 dollars <- (year-1899)^2 plot(year,dollars) quartz("year") histogram(~dollars) The first plot appears in Quartz 2. The second quartz window, named year, opens but the histogram doesn't appear. However, when I copy and paste this script directly into the R console, both quartz windows (Quartz 2
2004 Nov 16
3
How to access samba without login prompt. !
Dear Sir, Hello, My name is kenneth Yeung. I wonder to know how to configure samba or window to access samba folder without login prompt. ! I am using Wins 2K for client, and Linux server is set samba server. I can login to samba using username and password, but I want to do a windows backup schedule task without prompt. login window ! Could you tell me the method to do this task. Thank you for
2010 Dec 21
1
How to suppress plotting for "xyplot(zoo(x))"?
Hi, I found the thread http://r.789695.n4.nabble.com/Matrix-as-input-to-xyplot-lattice-proper-extended-formula-syntax-td896948.html I used Gabor's approach and then tried to assign the plot to a variable (see below). But a Quartz device is opened... why? I don't want to have anything plot/printed, I just would like to store the plot object. Is there something like "plot =
2010 Jan 28
1
quartz() and dpi
Hello all, I am using quartz (on OS X obviously) to produce PDFs and PNGs from my plots, for later inclusion in LaTeX. I am typically using something like: plot(0) dev.print(quartz, file="foo.pdf", width=5, height=3) dev.print(quartz, file="foo.png", width=5, height=3, dpi=72) I want the sizes of the PDF and PNG to be *equal* in *inches*, which works with dpi=72. However,
2010 Apr 17
2
grid.cap() requires more time?
Dear all, I am puzzled by the following behavior of the new grid.cap() function, which appears to run out of time when capturing the output of a graphic. It works fine if I introduce a Sys.sleep(1) before executing more code, library(grid) quartz() grid.circle(gp=gpar(fill="black")) gg <- grid.cap() dev.new() grid.raster(gg) ## completely blank gg[gg!="white"] ## indeed
2010 Feb 11
1
Sweave, lty = 3 line incorect in pdf output
I'm having a problem with dotted lines (lty = 3) in the pdf output in documents generated with Sweave. In the displayed pdf, the dotted line does not show up and in the printed output, it is there but does not seem to respect the lwd argument, for example, it is very faint despite using lwd = 3. The dotted line is correct in a quartz window and if I save the Quartz window to a pdf and
2011 Mar 20
3
problem with xyplot
Hi all, I am having a problem using xyplot from lattice library. I am plotting one variable against another one, conditioning on two other variablesm one of which has 3 levels and the other 6 levels. The output is thus a 6x3 panel plot. Here's my code: print((xyplot(CloDurPercent[CloDurNA != 'NA' & Mscor<3.5]~ConsDur[CloDurNA != 'NA' & Mscor<3.5]|Pos*ConsId,
2004 Jan 26
3
Fortran source code
Hi, I am wondering if it is possible to view the Fortran source code called by R functions. In particular, I am interested in the "leaps.setup" function in a package called "leaps", which calls Fortran functions "ssleaps", "initr" etc. Any help would be greatly appreciated. Ka Yee Yeung Bioinformatics Scientist Dept of Microbiology University of
2008 Dec 31
2
Lattice trellis.focus() with pdf
Hi, I have a the code for a plot that works perfectly running in R and printing to a Quartz object but which doesn't work when I make the trellis device a pdf. The code is as follows: ---- trellis.device(device="pdf", new=TRUE) trellis.par.set(my.theme()) dotplot(Y ~ X | C, groups=G, data=D, layout=c(2,1), ... ) trellis.focus("panel", 1, 1) for (y in 1:5) {
2008 Nov 20
1
Re: Unreal Media Server - no way to run in Linux
I've just tested Unreal Media Server with Wine 1.1.8, and found some improvements. It now doesn't drop a connection immediately, but dies after trying to stream some data: The following errors occur when I try to connect and watch MediaRoot/test.avi: fixme:quartz:AVISplitter_first_request Created stream 0 thread 0x0000005a fixme:quartz:AVISplitter_first_request Created stream 1 thread
2005 Dec 10
2
odd error
Hi All. I am getting a rather odd error using R 2.2.0 on Suse Linux 10. I write R scripts in the text editor Kate and then execute them using e.g >source ("timecourse_il4.r") in R. I have been moving these scripts between a linux box and a Mac and for that reason have a line quartz(display="", width=7, height=7)# set quartz graphics window size for linux change this to
2011 Oct 02
1
plot: how to fix the ratio of the plot box?
Dear all, this should be trivial, but I couldn't figure out how to solve it... I would like to have a plot with fixed aspect ratio of 1. Whenever I resize the Quartz window, the axes are extended so that the plot fills the whole window. However, if you have different extensions for the different axes, the plot does not look like "a square" anymore (i.e., aspect ratio 1). The same
2007 Dec 10
2
Problem with graphics device in Mac OS X
Hello List, I am teaching a basic course where students are encouraged to use R. There are a few students using Mac OS X. As a test we downloaded and installed the latest .dmg file (R-2.6.1.dmg) onto a intel Mac running 10.5.1. A device query yields > getOption("device") "quartz" But any plot command does not bring up a plot (e.g. plot(), boxplot(), hist()). I found a
2012 Oct 22
1
quartz.save of the FAQ (Mac)
Hi, In the FAQ for Mac http://cran.r-project.org/bin/macosx/RMacOSX-FAQ.html there is 7.2 Saving the image You can can (???) the content of the quartz device window into a PDF file. This is not explained! This is a very simple way to export high quality graphics from R into other applications on Mac OS X graphics is PDF based (so are almost all applications available). However, this process
2010 Oct 01
2
strange interaction between rasterImage and Grid graphics
Dear all, This may be specific to Mac, I haven't had a chance to test another platform. Consider this, plot(1,1,t="n") rasterImage(matrix(1),1,1,1,1) library(grid) grid.rect(gp=gpar(fill="grey")) The grid.rect covers the full device window as expected. However, when I resize the window ever so slightly (interactive device) the rectGrob is suddenly clipped to the previous
2009 Aug 06
1
Using system fonts in MacOS
Dear r-help, I am using R for MacOS (R 2.9.1 GUI 1.28 Tiger build 32-bit (5444)) and would like to be able to use MacOS system fonts for the labels on my plots. So far I have been unsuccessful, to get this to work. Reading the help I found the quartz() and quartzFonts() commands. In an attempt to set the font family I have tried this, quartz(family="Times-Roman"), and also
2009 Jun 03
2
Problems with plot and Quartz device (PR#13744)
Full_Name: Thomas Richardson Version: R 2.9.0 GUI 1.28 Tiger build 32-bit (5395) OS: 10.4.11 Submission from: (NULL) (216.254.15.72) I have encountered a problem with points in scatterplots disappearing in a quartz window when it is re-sized (to make it larger). I am constructing an 8x12 matrix of scatterplots each containing approx 600 points. In order to get them in the window I remove the