Displaying 20 results from an estimated 50000 matches similar to: "Plotting with plot()"
2003 Aug 20
2
Plots default to Rplots.ps
Dear All,
Hello I'm a newbie to the list. I recently installed R on a Redhat 9.0
system, when I come to plot anything it does not bring up a graphics
window but rather stores it in a file "Rplots.ps". I tried x11() but
that doesn't bring up a window either. I would greatly appreciate any
advice.
Simon Woodhead
2009 Sep 14
1
setting plotting device
Hi All,
I have recently *re*-installed R-2.9.1 in my Linux machine. Since then,
I am unable to plot using the usual interactive device.
> plot(1:10)
This plots in a pdf file "Rplots.pdf" in my working directory.
> sessionInfo()
R version 2.9.1 (2009-06-26)
i686-pc-linux-gnu
locale:
2005 May 16
1
get plot in a window when running R in the shell
Dear useRs,
On a GNU/Linux box I want to run some code from the command line. This works
#!/bin/sh
R --vanilla -q --gui=X11 < code.r
however I want the plots to appear in a window (as it happens when the
code is run interactively) instead of being saved in 'Rplots.ps'. Is
that doable?
Thank you,
b.
2007 May 21
3
quartz() on MAC OSX
I am (desperately) trying to get used to using a Mac here at my new
location. (Why *anyone* would ever use anything other than Linux, except
under duress as I am, totally escapes me, but that's another story.)
Fortunately much of the Mac OSX is actually Unix, so a civilized person can
manage to carry on ... But there are some things. (Like this <expletive
deleted> mailer ... But
2000 Nov 16
1
postscript error
I have generated a graph on the X11 device, but when I
> dev.copy(postscript)
postscript
3
> dev.off()
X11
2
>
the Rplots.ps file is generated but contains a prologue only.
Can anyone suggest what I am doing wrong? Just to anticipate the
upgrade reply ...
> version
_
platform i686-pc-linux-gnu
arch i686
os linux-gnu
2009 Aug 11
1
Generating R plots via Ruby CGI
Greetings,
I'm trying to debug a simple two-line plot routine in R called test.R:
cor(swiss)
plot(swiss$Catholic, swiss$Examination)
These commands work fine when typed into R. They also work fine when
I invoke this routine by the following line into my terminal:
R --slave < /Library/WebServer/Documents/gsa/test.R
My ultimate goal is to send data to this R routine via a web
2008 Jul 17
2
AIX 5.3 --enable-R-shlib --with-x ---with-iconv make error with R-2.7.0 and R-2.7.1
Hi guys,
I am trying to compile a 64bit version of R 2.7.0 on AIX 5.3. And I am
running into some troubles. I also try the latest version 2.7.1 and
get the very similar errors.
The machine info:
-----------------------
$uname -srvp
AIX 3 5 powerpc
----------------------
My configuration is this:
----------------------------------------------------------
./configure \
2003 Nov 19
3
X11/ graphics problem
Hello
I'm moving from using R 1.8 for Windows to using Linux (Redhat version 9)
and I cannot get any graphics. However everything else maths, models
equations is fine-- and much quicker. I built from the source file following
the commands in the install manual.
>plot(1:10, 1:10)
does nothing! So clearly I have a problem with X Windows.
> capabilities()
jpeg png tcltk
2012 Feb 01
1
X11 error while plotting in R on OSX
I installed R 2.14.1 on a OSX 10.7.2 computer using MacPorts. If I fire up
R on a terminal, this very simple session gives me errors. I attach
sessionInfo() details as well. In addition to the warnings, I also do not
get any plots on the X11 window after the warnings. So one cannot just
ignore the warnings since the plots don't work anymore after this. I guess
one could try to avoid this by
2008 Aug 28
1
Second X11 call with invalid display crashes R after first X11 call. (PR#12628)
I get this with R 2.7.2 (and 2.7.1, and 2.6.2, but NOT 2.4.0):
> X11() # this one opens up okay
> X11("foo")
Error: Couldn't find per display information
$
and R crashes out back to my shell prompt.
If I do X11("foo") as a first command I get a meaningful error and my
R prompt back:
> X11("foo")
Error in X11(d$display, d$width, d$height,
2008 Aug 07
1
Cairo bitmap output should work without X11 dependency (PR#12218)
Full_Name: Craig Ruff
Version: 2.7.1
OS: Irix 6.5.30
Submission from: (NULL) (128.117.8.145)
Cairo based bitmap graphics output should work if cairo and R have been compiled
without xlib support. 2.7.1 gives the "X11 is not available" message in this
case when run interactively, and from my reading the png documentation, calling
png(filename=..., type="cairo") should work.
2008 Aug 12
1
X11 plotting error
Hey everyone,
I'm part of a team working at NOAA and we have developed a swan script that
analyzes data and generates plots for the forecasters. We are ready to put
the script on the cron and call it a summer but a technical issue has popped
up which has us puzzled.
When we run the script as an unprivileged user, it bails when png() gets
called to open a device for the output. The error is
2009 Apr 24
1
Error in X11() : X11 module cannot be loaded
Hi,
we are using R installed on several linux computer - mostly debian lenny
and also ubuntu, all 64 bit. Approx.two week ago, I started getting the
following error when I tried to plot().
Error in X11() : X11 module cannot be loaded
In addition: Warning message:
In X11() : unable to load shared library
'/usr/lib64/R/modules//R_X11.so':
/usr/lib/libcairo.so.2: symbol
2004 Jun 30
1
funny plotting
Hi, I just wanted to plot a boxplot with a nice curve going through it,
I thought this would be a simple task but for some reason I can't get
the two graphs on the same page accurately. Enclosed is the code showing
the two plots seperately and together. I would have thought it should
work if I could use boxplot() then plot() overlayed but it won't allow
the command add=TRUE (which
2012 Mar 08
1
Warnings when plotting after x11() in R 2.14.2
Dear R-help,
I recently upgraded from R 2.13.1 to R 2.14.2 and now get warning
messages when plotting after using x11(). Example:
> plot(rnorm(10)) ### no warnings
> x11(); plot(rnorm(10))
Warning messages:
1: In axis(side = side, at = at, labels = labels, ...) :
Font family not found in Windows font database
2: In axis(side = side, at = at, labels = labels, ...) :
Font family not
2006 Jun 05
3
Fastest way to do HWE.exact test on 100K SNP data?
Hi everyone,
I'm using the function 'HWE.exact' of 'genetics' package to compute p-values of
the HWE test. My data set consists of ~600 subjects (cases and controls) typed
at ~ 10K SNP markers; the test is applied separately to cases and controls. The
genotypes are stored in a list of 'genotype' objects, all.geno, and p-values are
calculated inside the loop over all
2001 Dec 09
1
trouble with plotting
I'm trying to use the lattice package (and have run into the message before)
where I will get the following when trying to plot....
Error in clearpage() : Error: X11 cannot allocate additional graphics
colors.
Consider using X11 with colortype="pseudo.cube" or "gray".
What do I need to do to get rid of this so that I can use the graphics
libraries to their fullest
2008 Jul 18
1
par("din") vs dev.size()
Hello,
I was messing around with graphics, and noted an odd behavior of par("din"). If
the x11 device is empty, par("din") does not return the correct size
if the device
has been resized manually. dev.size() works correctly.
R version 2.7.1; Fedora 8
# case 1 - empty device
> x11()
> dev.size()
[1] 6.995263 6.994187
> par("din")
[1] 6.995263 6.994187
#
2005 Jan 22
1
Plotting with Statistics::R, Perl/R
I am trying to plot in R from a perl script using the Statistics::R
package as my bridge. The following are the conditions:
0. I am running from a Linux server.
1. Even without xwindows the following saves test.png correctly from an
interactive session with R:
> xy<-cbind(1,1)
> png("test.png")
> plot(xy)
> dev.off()
2. However, when called from the perl script I get
2008 Nov 10
1
plotting graph in different device
Hi,
i try to plot my graph into different device using x11(),
but when i do this comes up:
> x11(print(plot(A5e$ECAB,A5e$EXPEND,type='p',main='Per capita expenditure
> against economic
+ ability index without
outliners',xlab='ECAB',ylab='EXPEND',xlim=c(0,150),ylim=c(150,400),
+ col='red',col.axis='blue')))
NULL
Warning message: