Displaying 20 results from an estimated 10000 matches similar to: "Box around legends (and postscript?)"
2002 Sep 17
2
legend in image()
System info:
Linux slackware
R Version 1.5.1 (2002-06-17)
ESS 5.1.21
Emacs 21.2.1
-------------------
Colleagues
Is there a way to add a legend to an image plot? I don't see any
reference to legends in the documentation (so I suppose the answer is
no?). Although the documentation says image takes plot() parameters, it
isn't clear to me how the usual use of legend in a plot command
2001 Dec 10
1
Postscript resolution
Hi all
I have some plots that I wish to write out to postcript files. I open
the postscript device as suggested [postscript(file="foo.eps",...)], run
my plotting commands, and close the device as suggested [dev.off()].
However, when I open the eps files in a postscript viewer such as the
gimp, the resolution of the postscript images is *really* bad, very
"blocky" and
2002 Oct 24
4
plot slow?
Hi,
I just installed R and am comparing it to other packages (such as Igor).
So, you'll have to excuse me if this is a stupid question. I run the
simple command:
plot(1:1000000)
And it seems SO slow! Igor blasts through this.
My theory is that R is redrawing the screen for every point that's being
graphed. Is it possible to control how often R redraws a plot as its
building it -
2001 Jan 18
1
ESS Default function template for R
Colleagues
----------------------------------
System info:
R version rw1020 on NT
ESS using emacs ver. 20.4
~/.emacs
; Default function template
(setq ess-insert-function-templates t)
----------------------------------
When loading a new function into the R workspace using ctrl-CD I would
like the default function template to come up, rather than a blank buffer. I
thought I had the Default
2001 Jun 29
2
Re: ESS and R ver 1.3.0/ graph menu/ save PDF
"SM" == S McClatchie <S.McClatchie> writes:
>
> SM> I notice that the new option under R ver. 1.3.0 to save a
> SM> graph as a pdf file from the graph window menu (file/ save as/ SM>
> PDF) works differently (extremely slowly) under ESS, whereas SM> it is
> almost instant from the R- gui.
>
> SM> Does the feature not work
2002 Sep 09
3
loading data from a specified directory
System info:
Linux slackware
R Version 1.5.1 (2002-06-17)
ESS 5.1.21
Emacs 21.2.1
-------------------
Colleagues
I have some text files in a certain directory and want to process them
sequentially. So I want to pass the filename identifier into a function
and loop through the processing of each file in turn.I've called the
file identifier f in this code segment:
image.dvm <- function
2001 Mar 09
2
Pager size in 1.2.2 Windows
The following sequence of commands (for example):
>my.data<-rnorm(10000, 5, 1)
>my.data
fills my pager buffer beyond its capacity. When I type "my.data", the
pager displays approximately the bottom 7000 cells of the file, but "loses"
the first 3000. Is there a some setting that increases the size of the
pager buffer, or is this a limit in the Windows version?
2003 Jun 17
0
Quality of graphics produced as windows metafiles
Hi all
My details:
platform i386-pc-mingw32
arch i386
os mingw32
system i386, mingw32
status
major 1
minor 7.0
year 2003
month 04
day 16
language R
Please excuse my woeful ignorance, but when I copy the contents of an
R-graphics window produced using "windows()" (or any of its close
relations) to the clipboard as a windows metafile and then paste the
2001 Mar 14
2
scan
Hello, I have a problem. I have to read a HUGE file which has to be
line processed, so I would like to use scan like
p <- scan(pfile,what=c(0,0,0,"",0,""),nlines=1)
but it continues to read the first line, so I have to add a skip and
increment the skip after each read.
It takes forever to read a test file of 1 Mb, the real one is in 60's Mb
Is there a way to read line
2003 Jan 29
2
calling sweave function from latex
System info:
Mandrake 9.0
R Version 1.6.1
ESS 5.1.21
Emacs 21.2.1
-------------------
Colleagues
I've been calling R-code embedded in my LaTex document using Sweave, but
would like to make things more convenient. At present as I understand it
you first process the R chunks of code using the Sweave function
called from within R to process a "precursor file" e.g. foo.sw to get a
2003 Jan 29
2
calling sweave function from latex
System info:
Mandrake 9.0
R Version 1.6.1
ESS 5.1.21
Emacs 21.2.1
-------------------
Colleagues
I've been calling R-code embedded in my LaTex document using Sweave, but
would like to make things more convenient. At present as I understand it
you first process the R chunks of code using the Sweave function
called from within R to process a "precursor file" e.g. foo.sw to get a
2008 Sep 30
1
Adding legends to a plot
Hello,
I have a time series plot drawn using 3 different colored lines, each line
corresponds to different category group. I'd like to put legends on the
plot. I am using "legend" to do this, however, I can either specify lty or
col in legend. Will I be able to do the following in the legend box: a solid
black line then g1, a solid red line then g2, a solid blue line then g3?
2002 Sep 17
0
legend in image
System info:
Linux slackware
R Version 1.5.1 (2002-06-17)
ESS 5.1.21
Emacs 21.2.1
-------------------
Colleagues
Thanks very much for advice. I was not aware of the Fields package
(although I've been using Geostat and Spatial). The image.plot()
function in Fields does a lovely job, with an added bonus of fixing the
problem I was having of balancing the number of colour levels with the
2000 Jun 22
2
Postscript Legends (or not)
I discovered a little problem when using the Windows NT release of R
1.0.1, and it's still there in R 1.1.0.
The boiled down version is this: I want to draw the following plot and
put it into a Postscript file:
x <- c(1,2,3,4); y1 <- c(1,2,3,4); y2 <- c(2,2,2,2)
Fred <- c(1,2)
postscript(file="d:/Bob/Papers/IFM/try2.ps")
plot(x,y1, type="l")
2001 Apr 01
1
ylab/ expression/ superscript to a bracket
Colleagues
----------------------------------
System info:
R version rw1022 on NT
ESS v. 5.1.18 using emacs ver. 20.4
----------------------------------
I have some rather unusual units for acoustic volume backscattering
integrated over several metres depth and 10 transmits (which happens to
= 160 m along transect). I need to express these units in a graph label.
My problem
2003 Oct 01
3
problem downloading Red Hat R-1.7.1-1.i386.rpm
System info:
Red Hat 9.0
R Version 1.7.0
ESS 5.1.21
Emacs 21.2.1
-------------------
Colleagues
At work I've had to migrate from Mandrake 9.1 to Red Hat 9.0 and I'm
reinstalling R. I am having a problem downloading from
R-1.7.1-1.i386.rpm from /bin/linux/redhat/9/i386. Basically the download
does not complete. I am using mozilla, and when I click on the link the
screen corrupts with
1998 May 14
0
R-beta: Legends and Postscript devices
Ernesto,
1) I generally preview the graphics on the x11() display, and then print
to a file using the 'postscript' output device. Using the following
procedure has never failed for me.
>plot(x,y,...)
>legend(...)
>postscript("Rplots.ps",paper="a4",width=6,height=5,
+ family="Times")
>plot(x,y,...)
>legend(...)
>dev.off
>system("lpr
2002 May 02
0
tab complete for R under ESS
> System info:
> R Version 1.4.1 (2002-01-30) on Windows 2000
> ESS v. 5.1.20 using emacs ver. 21.1.1
Colleagues
Some time ago I asked about tab complete functionality for R under
ESS on windows. I never got it working as well as I might have liked until
today. It is still slow the first time while all the environments are checked
but after that it works well.
The solution below
2005 Jul 04
1
Rotate legends or other approaches to nice legend placement?
I'm sure this general sort of question has been asked many times before
- I would _like_ automatic and sensible legend placement in barplots so
data is not overwritten... but since there doesn't seem to be one, one
of the following would be useful:
One approach for this would be to place the legend to the right of the
graph, and rotate it by 90 degrees.
Is there a sensible way to do
2003 Oct 05
3
Placing legends
I'm trying to automate making a bunch of figures and I need a way to
automate legend position. As I understand it the legend is placed based
on coordinates. I don't know before hand what the coordinates are going
to be. On one graph my y axis might go from -50 to -10. On another it
might go from 0 to 180.
Is there any way to query where the origin is? Or is there another way
to