What speaks against using the jpeg (or png) device?
type:
?jpeg
for help
Have also a look at the wiki:
http://wiki.r-project.org/rwiki/doku.php?id=tips:graphics-base:0savegraphs
Stefan
Conan Phelan schrieb:
I would like to save graphics I produce in jpeg or gif
formats. The GDD package
Please mail always also to the list, since it may be that there is
someone who could reply better and/or faster.
Especially in this case since I am only experienced in M$ Windows and
Linux so I am unable to guess whats wrong with OSX. does not even the
postscript device work? With postscript I
this into a function together
with the test, so that I don't have to write to much
Stefan Grosse
Dear list,
I want to extract pairs of values out of a dataframe where one
criteria/condition does match.
I have an experiment with 3 conditions which were not always applied:
e.g.:
group cond x
Lothar,
Which system do you use? Windows, Linux, Mac?
Stefan
Lothar Schmid schrieb:
If I start a computation in R, how can I interrupt it?
I' using R 2.1.0.
Thanks for your help,
Lothar
__
R-help@stat.math.ethz.ch mailing list
If you still are not convinced have a look at UniWakkaWiki:
http://uniwakka.sourceforge.net/HomePage
It is a Wiki for Science and University purposes and claims to be able
to export to Openoffice as well as to LaTeX.
Stefan Grosse
I have my own server, Windows, based on Apache, PhP, and MySQL
and handling dependencies
better.)
You could use rpm at the command line level.
open a shell, type su and give your password, change to the folder where
the rpm is downloaded to, type
rpm -ivh R-2.3.1-1.fc5.x86_64.rpm will try to install and give you
information on whats missing...
Stefan Grosse
format.
For unpacking on a windows machine use either 7zip:
http://www.7-zip.org/ or the total commander: http://www.ghisler.com .
The first is a free packing program and the second is the best ever
windows file manager (if you want to open it there just double click at
the archive).
Stefan Grosse
that the correction is taken into account for the stats package?)
Stefan Grosse
Take the following example from Bortz/Lienert/Boehnke:
x1-c(9,14,8,11,14,10,8,14,12,14,13,9,15,12,9)
x2-c(13,15,9,12,16,10,8,13,12,16,9,10,16,12,9)
# exactRankTests package:
wilcox.exact(x1,x2,paired=TRUE
follow the color scheme and not the different symbols.
Any suggestions what to change?
And how do I change or switch of that background colors in each plots title?
Stefan Grosse
__
R-help@stat.math.ethz.ch mailing list
https://stat.ethz.ch/mailman/listinfo
R trellis.par.set(superpose.symbol=list(pch=c(1, 2)))
Warning message:
Note: The default device has been opened to honour attempt to modify trellis
settings in: trellis.par.set(superpose.symbol = list(pch = c(1, 2)))
R
how about producing pdf output- should be the same on every PC...
Charles Annis, P.E. schrieb:
Greetings, R-Citizens:
I have the good fortune of working with a 19 1280 X 1024 pixel monitor. My
R-code produces nice-looking graphics on this machine but the same code
results in crowded plots
how about learning to use help.search? (In may you already asked a
similiar question...)
help.search(hexadecimal)
which would lead you to format.hexmode
?format.hexmode
Romain Lorrilliere schrieb:
Hi,
do you know, a method to convert an decimal value (integer) to the
corresponding
I did an eps/ps file with e.g.:
postscript(c:/Temp/test.eps, width = 8.0, height = 6.0, horizontal =
FALSE, onefile = FALSE, paper = special)
curve(x^2)
dev.off()
but I am not sure what you mean with the second file with the latex
commands.
Paul Smith schrieb:
Dear All
Is there some way of
R graphics for inclusion in LaTeX.
see above.
Have a look at a good LaTeX guide like lshort
http://tobi.oetiker.ch/lshort/lshort.pdf
(e.g. p.73/73)
Stefan Grosse
__
R-help@stat.math.ethz.ch mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
Although it does not directly answer your question you might be
interested in:
Michalis Ioannides, A comparison of yield curve estimation techniques using UK
data, Journal of Banking Finance, Volume 27, Issue 1, , January 2003, Pages
1-26.
Abstract: I compare different methods of estimating
will autoinstall then.
Can you tell how you worked that out (the manual compilation)? I failed
on Fedora Core 5 with JRE 1.5.0_08 with install.packages and dep=true. I
tried a hint from the JGR mailing list but failed...
Stefan Grosse
__
R-help
for the reply.
Stefan Grosse
__
R-help@stat.math.ethz.ch mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.
e.g.:
barplot(x,col=c(lightgrey,darkgrey),besid=T)
legend(topleft,c(left,right),fill=c(lightgrey,darkgrey))
try:
?legend
and
example(legend)
for documentation!!!
Ingmar Visser schrieb:
Thanks, this could work!
However, the legend does not reproduce the color/shading used in the
original
I suggest you look at one of the guides:
http://cran.r-project.org/other-docs.html
before answering questions like this to the mailing list... please read
the posting guide!
laba diena schrieb:
I have a data file with 3 columns and I need to take only 2, how to do that
?
[[alternative
Interesting packages for you might be the nlme and lme4 packages and as
a book Pinheiro/Bates, Mixed-Effects Models in S and S-Plus
Lina Jansen schrieb:
Hi,
I am analysing an experiment that has one fixed (6 conditions) and two
random factors (11 subjects, 24 images in the conditions). I read
and
lmm http://cran.r-project.org/src/contrib/Descriptions/lmm.html
packages. [
http://cran.r-project.org/src/contrib/Views/SocialSciences.html ]
Lina Jansen schrieb:
2006/10/17, Stefan Grosse [EMAIL PROTECTED]
mailto:[EMAIL PROTECTED]:
Interesting packages for you might be the nlme and lme4
Have a look at the lattice package. It is the best choice for such a
task imho.
Johann Hibschman schrieb:
Hi all,
I'm trying to plot multiple histograms in one plot (cross-validation
values of model parameters), but I cannot seem to reduce the margins
enough to fit as many of them in as I
For LaTeX I use the winedt editor: http://www.winedt.com which is
extremely powerful and there exists an add-on for the use with R (but I
prefer using Tinn-R for R). Winedt is shareware, you have a trial period
of 30 days. It has an affordable price and discount for academics if I
remember
I had no problem on Fedora Core 5.
Patrick Connolly schrieb:
I've tried unsuccessfully to install lme4 on two different Redhat
systems but I've not noticed anything on this list to indicate anyone
else has had similar problems.
__
There is also a rather old version running natively under Windows 1.0.5
something. But I think TeXmacs is somewhat hard to use and would always
recommend LyX unless someone likes to embed calculations in a LaTeX like
(which is I admit a really nice feature of TeXmacs. especially with
maxima ) I
Prof Brian Ripley schrieb:
Not surprising: you have not compiled R with -std=gnu99 to allow C99
features, as recommended in the R-admin manual, and selected by
default. (Comment to Doug Bates: it is probably better still to write
in C90 if you can.)
This seems to be a problem with the
Sam,
Have you tried to produce a ps/eps figure with the postscript device?
Does this work? you could still convert it to pdf with ghostscript or
include eps figures...
Stefan
__
R-help@stat.math.ethz.ch mailing list
I have the following Data structure
$ step45 : Factor w/ 2 levels
$ obserror : num 6.2 6.2 5.6 6.6 6.6 ...
$ Mon: num 2.2 2.0 1.0 3.2 2.0 ...
$ inc.comp : num 4 5 2 5 5 5 5 5 4 4 ...
all I wanted to do is plotting Mon against obserror, the colors should
be by step45 and the
here an example with the car data
qplot(drat,wt,data=mtcars,shape=as.factor(carb),col=am,size=3)
it gets a bit better if one takes away the as.factor (but that of course
changes other things)
The picture is saved via metafile, screenshot did not work (mostly black
whyever) I know its deleted for
hadley wickham schrieb:
I think you mean
qplot(obserror,Mon,data=obscomp, size=inc.comp,col=step45)
Yes sorry, that was a typo (from playing around with the options)
unfortunately the size of the is something I do not want it to be, the
legend for inc.comp says: 4, 2.25, 1 ,0.25 , 0 I
64bit does not make anything faster. It is only of use if you want to
use more then 4 GB of RAM of if you need a higher precision of your
variables
The dual core question: dual core is faster if programs are able to use
that. What is sure that R cannot make (until now) use of the two cores
if you
You are posting in the wrong mailing list, mail your question to the lyx
users list: http://www.lyx.org/internet/mailing.php
John Kane wrote:
I just changed machines and, at first, could not get
LyX 1.4.3-4 to even load. I tried 1.5 which loaded
nicely but would not give me PDF output.
. There is only one big
difference which indeed includes loops (Creation of a 220x220 Toeplitz
matrix) where Matlab is much faster. But maybe a simple change in the
programmation can change that...
Has someone in the list an updated script?
Stefan Grosse
The benchmarks:
R 2.4.1
R Benchmark 2.3
Thank you both Pr. Ripley and Dr. Skyler for taking the time to help. I got
your further responses in my email here at work. I really think that Dr.
Ripley is correct : The symptoms look like a very old Linux distro and a
missing/damaged/incompatible libg2c.
# gcc --version
2.96
#
There are many ways if I understood what you indend to do:
example data:
toplot-data.frame(x=c(1:5,1:5),y=rnorm(10),sbs=c(rep(a,5),rep(b,5)))
1st with plot itself:
plot(y~x,data=toplot,type=n)
lines(y~x,data=subset(toplot,sbs==a),type=b,pch=4,col=blue)
how about:
?str
ever considered reading an introductory text?
find some here:
http://cran.r-project.org/other-docs.html
Stefan
elyakhlifi mustapha wrote:
hello,
I wanna print something like this
Class Levels Values
Id_TrT1 1 2
Id_Geno
What format does your date have? This is essential here. However it must
be something like subset(yourdata, year %in% 2004) how to extract the
year from your date you must find out yourself... (depending on the
dates format...)
ever considered reading an introductory text?
find some here:
Is it so much effort to use the search on r-project.org?
elyakhlifi mustapha wrote:
hello,
If I wanna export data.frame from R to html have you got some ideas to do
this?
___
[[alternative HTML
tcltk must be installed on your system, it is not a R package. Which
Linux are you using?
W Eryk Wolski wrote:
Rusers,
library(Rcmdr)
Loading required package: tcltk
Error in firstlib(which.lib.loc, package) :
Tcl/Tk support is not available on this system
While installing R I run
To my excuse I can say that I would have expected configure to issue
an error or warning.
I am absolutely certain that there was a remark during configure... you
probably just have overseen that.
I did run it configure with --with-tcltk. But there was not a singel
message which would
I just read another post so I know youre on (K)ubuntu: you need to
install tcl8.4-dev and tk84-dev packages.
If there is no tcl/tk R installs nevertheless but is stating that at the
configuration that there is no tcl/tk support... so thats where you have
to look at.
Maybe it is better you
you can place the figures with print command, e.g.
pdf(output.pdf)
print(text or textplot,position=c(0,0,.5,.5),more=T)
print(persp(zPERSP_1),position=c(.5,0,1,0),more=T)
print(persp(zPERSP_2),position=c(0,0.5,0.5,1),more=T)
print(persp(zPERSP_3),position=c(.5,.5,1,1))
dev.off()
pdf has options
The version 2.5.0 has left Alpha status long time ago and its final
version has been released so please try the new version.
Inman, Brant A. M.D. wrote:
This email is intended to highlight 2 problems that I encountered
running R 2.5.0 alpha on a Windows XP machine.
#1 - Open script error
to understand the problem better. In the
meanwhile, we thought we would post the problem on this forum to seek
some input from statisticians who possibly do this kind of analyses
everyday and hence are possibly more proficient with R and/or any
recommended methodologies.
Lalitha
On 5/2/07, *Stefan
How about making your homeworks yourselfes?
lalitha viswanath wrote:
Hi
I have a dataframe which has 3 columns of numeric data
A,B,C each of which has been obtained independent of
the other.
We are trying to find out, which of A or B cause C
i.e. We are hypothesising that C is the effect
First: the language of this mailing list is english (not to bother you
but potentially you adress more people then who could possibly help)
Second: on such errors specifying your R version and your System
(windows/Linux) would help
Third: a minimal example is also helpfull: hopw have used
if the version number is the same. (Or
make a clean install of R-2.5.0- Remove everything and do a new install).
Stefan
|
Original Message
Subject: Re:[R] Fehlermeldung
From: [EMAIL PROTECTED]
To: Stefan Grosse [EMAIL PROTECTED]
Date: Wed May 09 2007 15:02:10 GMT+0200
Dear Stefan
The example works fine for me on R 2.5.0 and WinXP...
Mielke Hans wrote:
Hi,
I was trying to run the example of Indomethacin kinetics from the book:
## From Pinheiro/Bates, Mixed-Effects-Models in S and S-Plus,
## Springer, Second Printing 2001, Section 6.2
library(nlme)
plot(Indometh)
the lme4 function you want is probably lmer()
type
?lmer
btw. your R is very old we are at 2.5.0 ...
Stefan
Amelie LESCROEL wrote:
Hi - I'm having a problem trying to use the function GLMM() from lme4. Here
is what happens:
library(lme4)
Loading required package: Matrix
it states that it does not find the object
donParEssai
which is not there. It is nor there since you have given the object the
name
donParCara
from what I see...
elyakhlifi mustapha wrote:
hello,
I tried to run programs in BATCH like you told me but to read the results
it's a lil hard
Hi John,
I use JGR when I am on Fedora. This is a good java gui which is similiar
(and better) compared to the R windows gui . You can install it via
install.packages(JGR,dep=T) and start with library(JGR). Sometimes
Java is not configured correctly so you might end up with an error. In
that case
Original Message
Subject: [R] read table
From: jiqiang yao [EMAIL PROTECTED]
To: r-help@stat.math.ethz.ch
Date: 05.06.2007 18:17
Hi,
I'm a novice of R.
I want to read the following table into R:
names mpgcyl disp hp drat
Mazda RX4 21.0
Which java have you installed? ( java -version )
You need a Sun Java and better is a 1.5 series Java, JGR seems to have
some problem with the new 1.6 series. And you need the JDK, not the JRE.
You can google how to do those installations on suse linux.
Stefan
Original Message
Precautionary note: the '1.5 series Java' (aka Java 5) does not work
with JNI (and hence rJava) on some platforms, including AMD64 Linux.
You can google how to do those installations on suse linux.
It can be tricky, especially if you need a later Java than your OS
version supports.
Since
?vignette
Original Message
Subject: [R] opening vignetten
From: Schmitt, Corinna [EMAIL PROTECTED]
To: r-help@stat.math.ethz.ch
Date: 06.06.2007 10:41
Dear R-Users,
I have a quite stupid question. I load the GO-package with the command
require(GO). Now I want to read the
Dear R-list,
I have encountered the following error message trying to update R packages:
update.packages(ask='graphics')
Warning in install.packages(update[instlib == l, Package], l,
contriburl = contriburl, :
'lib' is not writable
Error in install.packages(update[instlib == l,
Subject: Re:[R] update packages with R on Vista: error
From: Prof Brian Ripley [EMAIL PROTECTED]
To: Stefan Grosse [EMAIL PROTECTED]
Date: 07.06.2007 13:01
See the rw-FAQ, which describes this in detail.
Almost certainly you are trying to update the package 'cluster' which
is in the main library
can update my
latex packages without any problems even though they are in the Program
File directory (and also on-the-fly installation does work) ...
Stefan
Original Message
Subject: Re:[R] update packages with R on Vista: error
From: R. Villegas [EMAIL PROTECTED]
To: Stefan
possible inconvenience caused by my frustration
spiced up possibly with my inabilities.
Stefan
Original Message
Subject: Re:[R] update packages with R on Vista: error
From: Stefan Grosse [EMAIL PROTECTED]
To: R. Villegas [EMAIL PROTECTED]
Date: 08.06.2007 11:07
Thanks
There is, two candidates are ESS-emacs and JGR as a gui. Have a look at:
http://www.r-project.org/GUI
, on Tuesday 12 June 2007 19:42:33 John Sorkin wrote:
JS R 2.5 under windows XP
JS R 2.5 under Linux FC 6
JS
JS I currently use R under windows and when I do so, I get to work in a
nice
JGR is pretty close to the windows R-GUI (with the menus) but even better
since it is system independent and e.g. has syntax highlightning in the
editor.
You could have a look at the screenshots at http://rosuda.org/JGR/index.htm
What you need is a Java 5 SDK installed at the system and
for the answers,-
Stefan
Original Message
Subject: [R] update packages with R on Vista: error
From: Stefan Grosse [EMAIL PROTECTED]
To: r-help@stat.math.ethz.ch
Date: 07.06.2007 12:00
Dear R-list,
I have encountered the following error message trying to update R packages
Hi Maja,
if you are working on your own computer an alternative could be to
install R in your user directory: c:\Users\your_loginname_\R or
c:\Users\your_loginname_\Documents\R I also had a problem with the
writing permissions when I tried updating R packages.
Btw. when I work with files I set
Panel data is that you have e.g. several subjects
(=individuals,firms,households) being tracked over a certain time (meaning
there are repeated observations). One could roughly say that it is a
collection of (quite similiar) time series. This makes the analysis better
than pooling the whole
You could download the latest R (2.5.0) directly from CRAN, this just as
a side remark, You find instructions here:
http://cran.au.r-project.org/bin/linux/ubuntu/README
With java you should make sure that you have the Java 5 JDK installed.
I dont know how it is with Ubuntu but on fedora I have
Why are you not using read.csv or read.csv2 when you are reading a csv file?
Original Message
Subject: [R] to read table
From: elyakhlifi mustapha [EMAIL PROTECTED]
To: R-help@stat.math.ethz.ch
Date: 18.06.2007 09:23
Hello,
I have a problem to read a csv table. To read it I
Original Message
Subject: Re:[R] Speed up R
From: Matthew Keller [EMAIL PROTECTED]
To: Robert McFadden [EMAIL PROTECTED]
Date: 19.06.2007 23:09
but I think that windows has problems addressing
that much RAM (surely the 64bit Vista is OK with it though... surely).
Linux or
It would be helpfull if you would state what exactly you did expect.
As improvements you could reduce the digits, see ?xtable
Original Message
Subject: [R] xtable results doesn't correspond to data.frame
From: Vumani Dlamini [EMAIL PROTECTED]
To: r-help@stat.math.ethz.ch
Original Message
Subject: Re:[R] xtable results doesn't correspond to data.frame
From: Stefan Grosse [EMAIL PROTECTED]
To: Vumani Dlamini [EMAIL PROTECTED]
Date: 20.06.2007 12:20
Sorry, there is a line missing, I was asking what exactly was not as
expected.
As improvements
That table below is not the table from your first mail.
However I would do something like:
library(xtable)
testdata-data.frame(gender=c(rep(male,3),rep(female,4))
testtab-as.data.frame(table(testdata))
pct-function(x){
x/sum(x)*100
}
testtab$percent-pct(testtab$Freq)
is there a function in R that allows me to work with fractions without
transforming them to floats (or whatever) in between?
You could use the ryacas (CAS) package:
http://code.google.com/p/ryacas/
and/or
http://cran.r-project.org/doc/vignettes/Ryacas/Ryacas.pdf
e.g:
library(Ryacas)
http://cran.r-project.org/doc/manuals/R-data.html#Reading-Excel-spreadsheets
plus there is a package xlsReadWrite that might be of your interest.
Stefan
Original Message
Subject: [R] R-excel
From: Erika Frigo [EMAIL PROTECTED]
To: r-help@stat.math.ethz.ch
Date: 25.06.2007
Original Message
Subject: [R] transposing data.frames
From: Christoph Heibl [EMAIL PROTECTED]
To: R-help@stat.math.ethz.ch
Date: 25.06.2007 15:13
Hello,
This must be simple...
Thanks a lot
- Christoph
# Imagine you have a list, e.g:
K - list(1:10, 2:11, 9:18)
K
#
hi
i try to use arima and holtwinter to predict drought from 1895-2006
but i cannot read whole period of time and i try to do the exponent
fitting,
but it comes out as the coordinate x-y error
i send the source code and data to take a look
if anyone can help me, i am really new in R
to end of the entry making it:
deb http://my.favorite.cran.mirror/bin/linux/ubuntu feisty main
However after this it still complains that it can't find packages.gz
Just a guess: have you replaced the my.favorite.cran.mirror by a mirror
which is close to you? If you're in UK it would
msmith schrieb:
Hi,
Thanks for the suggestion and I wish the solution was that obvious, but I
have changed it to really point at my favourite mirror.
Using your example Synaptic reports the following error when I try to update
the repositories:
Stefan Grosse schrieb:
deb http://www.stats.bris.ac.uk/R/bin/linux/ubuntu feisty main
Sorry, I copied a mistake there, it should be:
deb http://www.stats.bris.ac.uk/R/bin/linux/ubuntu feisty/
Stefan
-=-=-
... The simple truth is that interstellar distances will not fit into
the human
Cat=c('a','a','a','b','b','b','a','a','b')# Categorical variable
C1=vector(length=length(Cat)) # New vector for numeric values
# Cycle through each column and set C1 to corresponding value of Cat.
for(i in 1:length(C1)){
if(Cat[i]=='a') C1[i]=-1 else C1[i]=1
}
C1
[1] -1 -1 -1
Gabor Grothendieck wrote:
set.seed(1)
C - sample(c(a, b), 10, replace = TRUE)
system.time(s1 - ifelse(C == a, 1, -1))
user system elapsed
0.370.010.38
system.time(s2 - 2 * (C == a) - 1)
user system elapsed
0.020.000.02
system.time(s1 -
Original Message
Subject: [R] Windows Binary for ncdf package
From: amna khan [EMAIL PROTECTED]
To: R-help@stat.math.ethz.ch, R-help@stat.math.ethz.ch
Date: 08.07.2007 19:52
Dear Sir
There is no window binary version of package ncdf in the latest release of R
2.5.1. i dont
Original Message
Subject: [R] help on fisher.test(stats)?
From: zhijie zhang [EMAIL PROTECTED]
To: R-help@stat.math.ethz.ch
Date: 09.07.2007 09:03
Dear friends,
My dataset have many zeros, so i must use fisher exact test .
Unfortunately, the fisher.test(stats) function fail
Original Message
Subject: [R] ECDF, distribution of Pareto, distribution of Normal
From: livia [EMAIL PROTECTED]
To: r-help@stat.math.ethz.ch
Date: Tue Jul 10 2007 18:35:04 GMT+0200
Hello all,
I would like to plot the emperical CDF, normal CDF and pareto CDF in the
same
I am not sure what you are doing there but what you need is
library(foreign)
and
write.dta()
see
?write.dta once you have loaded the foreign package
Stefan
Original Message
Subject: [R] Help with write.foreign (exporting data to Stata)
From: kdestler [EMAIL PROTECTED]
To:
I have 2 data frames as follows:
abc
1 NA 1
2 NA 2
NA 3 3
So a, b are the input values and c is the output which I am
interested in.
NA - Missing values. I used rbind, but its not working.
Let me know if anyone can help me
What
I'm a bit new to the world of R so forgive my ignorance.
That has nothing to do with the knowledge of R but with the model. Age
has only 2 different values: 0 and 1 and if it is 0 there is no scars,
so what exactly have you expected from the model?
I would say if you just want to prove that
I would say if you just want to prove that older deer have more scars
try the Mann Whitney non parametric test...
Forgive me but even that does not really make sense since the values are
all 0 so it is to obvious...
__
R-help@stat.math.ethz.ch
Original Message
Subject: [R] R-2.5.1 RedHat EL5 compilation failed
From: Wang Chengbin [EMAIL PROTECTED]
To: r-help@stat.math.ethz.ch
Date: 26.08.2007 15:22
I can't get R-2.5.1 compiled under RedHat EL5 with gcc 4.1.1. Configure
failed at the following:
You don't need to
On Thursday 06 September 2007 09:48:22 elyakhlifi mustapha wrote:
em I thougth that there is a function which does the kendall test in R,
em I writed on the console apropos(kendall) and I didn't found anything
em can you tell me how could I do to use the kendall test?
?cor.test
btw.:
Hi,
I was trying to install the packageRWinEdt in my computer with Vista OS.
O
Use Tinn-R it works with Vista although has some minor issues (which are
probably system specific).
https://sourceforge.net/projects/tinn-r
Stefan
-=-=-
... Time is an illusion, lunchtime doubly so. (Ford
89 matches
Mail list logo