How exactly are you doing this (see the footer of your message for the
input we asked for)? What is your 'minimal, self-contained, reproducible
code', and where is the output of sessionInfo()?
The plusminus symbol is in the symbol font, and it is also in some text
encodings, so there are
The standard advice is to use a separate library for packages you install.
R '2.60' is a long way off, so I am unable to predict what the advice will
be if it ever comes out.
Currently you can do
tmp - installed.packages()
inst - as.vector(tmp[is.na(tmp[,Priority]), 1])
save(inst,
Christian Salas wrote:
Using Tinn-R (in windows) is possible to run latex and R from the same
editor, which was great. Now, I am using Ubuntu-linux, which has been
better than WinXP. Currently, I am using Emacs (and then install ESS)
for running LaTeX and R from a same editor-program (like
Thanks Brian,
I got lost with the coding between windows and linux. I used the ± (Windows:
Alt-0177, instead of \u00B1) in a code writen under windows and than used on
linux.
eg:
plot(1:10)
text(3,8,paste(±, alt-numeric 0177 works only in windows,sep=))
text(8,3,paste(\u00B1, \\u00B1 works on
francogrex wrote:
I re-installed version 2-5-0 and it works well. I believe this problem is due
to an incompatibility of BRugs with R-2-6-0
francogrex wrote:
I was happy today to install the new version of R 2-6-0 But I ran into
problems I did not have before:
setwd(C:/R/DATA/BRugs)
Uwe Ligges wrote:
The recent version of BRugs works for me.
The file \buffer.txt is required for some inetraction between
OpenBUGS and R and is in R's temporary directory.
No idea why it does not work for you.
That's because I was using the older version of BRugs which was ok on
Installed and tested right now. Works fine, no problem.
Thanks,
Patrick
Uwe Ligges a écrit :
Patrick Giraudoux wrote:
Dear Listers,
I have just installed R-2.6.0 and the RWinEdt package 1.7-6 under
Windows XP.
wait for 1.7-7 which should appear on CRAN real soon now.
Uwe
The
Hi John,Peter
Thanks for your quick response.
1) I plotted the residual vs fitted values graph and it was fairly random,
there was no observable pattern in it - So I guess we are OK on that front.
The Q-Q plot was stretched 'S' shaped with the middle part being mostly on
the straight line. I
Jonne Zutt wrote:
Maybe I do...
I think the OP means the first scrollbar isn't tight to the first
listbox. This is due to the length of the Basic Manipulation label.
For example, try to pack this label as follows:
tkgrid(lbl.MainT,columnspan=2,sticky=nw)
Aha. Now I see it too:
Dear all,
according to the Help-page of DateTimeClasses {base} I should be able to do
time - z
with
timedate-time objects
z a numeric vector (in seconds) or an object of class difftime.
However, on R version 2.6.0 (Windows XP) I get
Sys.time() - as.difftime(c(0:3:20, 11:23:15))
Hello,
I want to do some simple bar plots on email arrival data, but I do not quite
get the point how to remove the legend. I use the following code:
dow -
read.csv(file=j:/uni_lernen/da_stockspam/svn/data/c411_weekday.txt,
header=TRUE)
dow$dayofweek - factor(dow$dayofweek)
days - c(Sun, Mon,
If you just want a coloured representation of your distance matrix, use image()
?image()
If you want to cluster your original data and show the original data (not the
distances) as a heatmap then use heatmap(), but you should use something like
hclust() to cluster the data first.
Try somelike this
library(ggplot2)
dow - data.frame(dayofweek = factor(1:7), p = runif(7), w = c(0, 1, 1,
1, 1, 1, 0))
sc - scale_fill_continuous()
sc$legend - FALSE
qplot(dayofweek, p, data=dow, geom=bar, xlab=Day, ylab=Arrival
Rate, main=Spam by Weekday, fill=w) + sc
HTH,
Thierry
Thanks very much for your reply Chuck, I have a quick follow up
question. You mention putting the data into a 2x2x3 for log-linear
model, however my lists have many more than 3 strata, actually
thousands. I am trying to work out whether the proportions in list 1
tend to be equal to the
This is approximately what I get:
-- ---
! !!S! ! !S!
! !!C! ! !C!
! !!R! !
Hello Thierry,
thanks for your fast response.
This does what I want, thank you.
Where can I get more documentation for this scale_fill_continuous() method
and similar ones? I figured out how to choose the colors but I don't quite
get how to add a solid border to the bars.
Regards,
Christoph
Hi
[EMAIL PROTECTED] napsal dne 08.10.2007 14:24:13:
Hi,
I would like to fix the data in the following data.frame, and I am
having trouble coding this in R - help please!
x
AB xy z
1 1 10.0 100 1000 1
2 2 19.8 200 2000 2
3 3 20.1 300 3000 3
4 4 20.3 400
Have you tried using pdf(), postscript(), or jpeg()? All of these have
arguments to specify the height and width of the device.
On 10/8/07, Christoph Krammer [EMAIL PROTECTED] wrote:
Hello,
I have another (possibly easy) question:
How to specify the size of a plot? When I draw a plot, I
Hi
[EMAIL PROTECTED] napsal dne 08.10.2007 15:15:58:
Hello,
I have another (possibly easy) question:
How to specify the size of a plot? When I draw a plot, I can freely
change
the size of the window, which is nice for single plots to find the best
height/width ratio, but as I need a
Hello James,
all of your suggestions work very well except of this:
FemMal - cbind(FemV1gezählt[2,], MalV1gezählt[2,])
colnames(FemMal) - (Females, Males)
Fehler: syntax error
FeMMal
[,1] [ ,2]
1 133 79
2 203 237
3 51 76
But it works if I do that:
Namen-c(Female,Male)
On Mon, 2007-10-08 at 15:35 +0200, Birgit Lemcke wrote:
Hello James,
all of your suggestions work very well except of this:
FemMal - cbind(FemV1gezählt[2,], MalV1gezählt[2,])
colnames(FemMal) - (Females, Males)
Fehler: syntax error
The OP missed out c() above, hence the syntax error.
On 10/8/07, ONKELINX, Thierry [EMAIL PROTECTED] wrote:
Hi Christophe,
Although I'm a fan of ggplot2, it's lack of documentation is a drawback.
I was having a similar problem and Hadley suggested the sc$legend -
FALSE solution. AFAIK it isn't documented (yet). Have a look at
Hadley's website
kapo coulibaly wrote:
This is approximately what I get:
-- ---
! !!S! ! !S!
! !!C! ! !C!
! !
From: michael watson
If you just want a coloured representation of your distance
matrix, use image()
?image()
W/o the parens...
If you want to cluster your original data and show the
original data (not the distances) as a heatmap then use
heatmap(), but you should use something
Petr PIKAL wrote:
Hi
[EMAIL PROTECTED] napsal dne 08.10.2007 14:24:13:
Hi,
I would like to fix the data in the following data.frame, and I am
having trouble coding this in R - help please!
x
AB xy z
1 1 10.0 100 1000 1
2 2 19.8 200 2000 2
3 3
Dear all
I have updated R graphical manuals homepage.
http://cged.genes.nig.ac.jp/RGM2/index.php
Since obsolute homepage
http://bg9.imslab.co.jp/Rhelp/
is no longer maintained,
please change your bookmark.
Osamu Ogasawara
[EMAIL PROTECTED]
[EMAIL PROTECTED]
In R prior to 2.6.0 with matrizes as well as with data.frames it is
possible to do:
a[2, c(TRUE, FALSE)]
In R 2.6.0 the mixed indexing works only for matrizes. Is this the
intention, a bug, or did I get something wrong?
Best regards
Meinhard
Meinhard Ploner
Althingstrasse 15
39031
data-ploner.com wrote:
In R prior to 2.6.0 with matrizes as well as with data.frames it is
possible to do:
a[2, c(TRUE, FALSE)]
In R 2.6.0 the mixed indexing works only for matrizes. Is this the
intention, a bug, or did I get something wrong?
Best regards
Meinhard
It looks
Peter Dalgaard [EMAIL PROTECTED] napsal dne 08.10.2007 16:31:28:
Petr PIKAL wrote:
Hi
[EMAIL PROTECTED] napsal dne 08.10.2007 14:24:13:
Hi,
I would like to fix the data in the following data.frame, and I am
having trouble coding this in R - help please!
x
AB
data-ploner.com wrote:
On Oct 8, 2007, at 4:58 PM, Peter Dalgaard wrote:
As far as I can tell, It happens only when drop=TRUE and exactly one
column is selected using a logical index.
Thank you.
Maybe it is better letting [] work as in previous R ... ?
Well, presumably the code changed for
Dear R_users,
I have some troubles with a visual basic application I have recently
created. This application automatically creates and executes an R script
based on a dataset and settings defined by the user. The .r file
(Create_Diagnostic_plots.r) is saved first in a given folder and then
Ricardo,
Tony Rossini (Novartis) provided a very good post on point (3) below (which you
may have already read):
http://tolstoy.newcastle.edu.au/R/e2/help/07/08/23820.html.
Regards,
-Cody
-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Ricardo
Hello Members,
I try to convert variables in a data.frame (bract.awn) in the class
ordered.
str(bract.awn)
'data.frame': 348 obs. of 2 variables:
$ bracts.length.relative.to.flower...Min: Factor w/ 4
levels 1,2,3,4: 2 3 3 3 3 2 1 4 3 2 ...
$
On Mon, 8 Oct 2007, Corry Gellatly wrote:
Thanks very much for your reply Chuck, I have a quick follow up
question. You mention putting the data into a 2x2x3 for log-linear
model, however my lists have many more than 3 strata, actually
thousands. I am trying to work out whether the
If it really is of class table (or is an array) or you convert it to such
you can use addmargins. You may need to read ?addmargins
carefully.
On 10/8/07, Alessandra Marmo [EMAIL PROTECTED] wrote:
Hello
I need to print table width colum sum like
XV1V2TOT
A235
Hi all,
I've been having trouble reading in distance matrices (values in lower triangle
only) that have been created by other programs. They load with NA values in the
upper triangle. Is there an option to read the matrices properly?
Thanks,
Muri
Hello EVERYONE,
I need an URGENT help from you please!
How can I see the estfun (empirical estimating function) and df (degree of
freedom) from the following mixed-model please?
(fm1 - lmer2(Reaction ~ Days + (Days|Subject), sleepstudy))
Many thanks in advance for your kind help.
On Oct 8, 2007, at 4:58 PM, Peter Dalgaard wrote:
data-ploner.com wrote:
In R prior to 2.6.0 with matrizes as well as with data.frames it is
possible to do:
a[2, c(TRUE, FALSE)]
In R 2.6.0 the mixed indexing works only for matrizes. Is this the
intention, a bug, or did I get something
Hello, I have got the following problem:
times - c(02.07.2007, 03.07.2007,03.09.2007, 04.07.2007,05.07.2007)
mode(times)
[1] numeric
tim - as.character(times)
mode(tim)
[1] character
sort(times)
[1] 02.07.2007 03.07.2007 03.09.2007 04.07.2007 05.07.2007
Is it possible to get
On Mon, 8 Oct 2007, Abdus Sattar wrote:
Hello EVERYONE,
I need an URGENT help from you please!
This type of requests is not considered to be very polite, please have a
look at the posting guide.
How can I see the estfun (empirical estimating function)
I guess (because you are not telling
On 10/8/07, Abdus Sattar [EMAIL PROTECTED] wrote:
Hello EVERYONE,
I need an URGENT help from you please!
How can I see the estfun (empirical estimating function) and df (degree
of freedom) from the following mixed-model please?
(fm1 - lmer2(Reaction ~ Days + (Days|Subject), sleepstudy))
I'm trying to get R to simulate the sum of the values on 10 fair dice
(yes, it's related to a homework problem, but is not the problem
itself). I tried to do this:
rep(sum(sample(1:6,100,replace=T)), times=10)
[1] 341 341 341 341 341 341 341 341 341 341
and noticed that sum(sample()) seems to
See
?replicate
which I think is what you are after.
Chuck
On Mon, 8 Oct 2007, Zembower, Kevin wrote:
I'm trying to get R to simulate the sum of the values on 10 fair dice
(yes, it's related to a homework problem, but is not the problem
itself). I tried to do this:
Dear R People:
Here are my latest attempts for Rmpi:
This is the list of locations for mpi.h:
/home/faculty/hodgess/mpich2-1.0.5p4/src/include/mpi.h
/home/faculty/hodgess/include/mpi.h
/home/faculty/hodgess/lam-7.1.4/romio/adio/sgi/mpi3.1/mpi.h
On Mon, 2007-10-08 at 07:38 -0700, Samuel Okoye wrote:
Hello, I have got the following problem:
times - c(02.07.2007, 03.07.2007,03.09.2007,
04.07.2007,05.07.2007)
mode(times)
[1] numeric
tim - as.character(times)
mode(tim)
[1] character
sort(times)
[1] 02.07.2007 03.07.2007
On 10/8/07, Achim Zeileis [EMAIL PROTECTED] wrote:
On Mon, 8 Oct 2007, Abdus Sattar wrote:
Hello EVERYONE,
I need an URGENT help from you please!
This type of requests is not considered to be very polite, please have a
look at the posting guide.
How can I see the estfun (empirical
Thanks so much, Chuck and Mark. Here's my script to simulate 10,000
rolls of 100 fair dice to demonstrate their conformity to a normal
curve:
x-replicate(1, sum(sample(1:6,100,replace=T)))
sdx-sd(x)
sdx
[1] 17.13966
meanx-mean(x)
meanx
[1] 350.0451
hist(x, freq=FALSE)
curve(dnorm(x,
rep(
sum(sample(1:6,100,replace=T)),
times=10)
Read carefully what you wrote. You asked R to sum a single sample, then
make
ten copies of the sum.
You need to take ten samples, then sum each. apply() would be helpful.
-Original Message-
I'm trying to get R to simulate the sum
Kevin Zembower wrote:
I'm trying to get R to simulate the sum of the values on 10 fair dice
(yes, it's related to a homework problem, but is not the problem
itself). I tried to do this:
rep(sum(sample(1:6,100,replace=T)), times=10)
[1] 341 341 341 341 341 341 341 341 341 341
rep(stuff,
Similar questions have been asked here before. See
http://finzi.psych.upenn.edu/R/Rhelp02a/archive/110042.html for one possible
answer (your case will be simpler than this).
--
Gregory (Greg) L. Snow Ph.D.
Statistical Data Center
Intermountain Healthcare
[EMAIL PROTECTED]
(801) 408-8111
Hello,
(Warning. This might not be the most complete or elegant solution ...)
If you want a sorted dataframe: look here for example
http://tolstoy.newcastle.edu.au/R/help/05/02/12391.html
To convert the factors from a data frame, you have to call as.ordered for
each factor separately (not for
Michael,
Try this alternative:
# from http://research.microsoft.com/users/lamport/pubs/hair.pdf
hairsex - matrix(
c(46, 45, 13, 12,
1, 101, 0, 20), 2, 4, byrow=TRUE)
dimnames(hairsex) - list(Gender=c(Female, Male),
Hair color=c(Blond, Brown, Red, Other) )
Another option (which should work on all platforms) is to use tcltk and
bind a function to the Motion event. The playSudoku function in the
sudoku package has an example of this (as well as using
getGraphicsEvent).
(wow, could that package actually be useful?)
--
Gregory (Greg) L. Snow Ph.D.
Certified MDs in the United States
788,437 in total 17,880 emails
Many popular specialties like Emergency Medicine, Plastic Surgery, OBGYN,
Oncology, Pediatrics and more
Many unique fields like 'medical school attended' and 'location of residency
training'
Special Price: $321
***
Hi All,
I'm excited to see that R-Core has released the document R:
Regulatory Compliance and Validation Issues
A Guidance Document for the Use of R in Regulated Clinical Trial
Environments (http://www.r-project.org/doc/R-FDA.pdf).
I know it represents a great deal of effort on the part of R
Greg Snow wrote:
Another option (which should work on all platforms) is to use tcltk and
bind a function to the Motion event. The playSudoku function in
the sudoku package has an example of this (as well as using
getGraphicsEvent).
(wow, could that package actually be useful?)
A long
Dear All,
Consider the following code:
pdf(file=figure.pdf,family=URWPalladio)
curve(dlnorm(x,0,1.5),0,10,xlim=c(0,10),ylim=c(0,0.85),axes=F,xlab=,ylab=f)
segments(exp(-1.5^2),0,exp(-1.5^2),dlnorm(exp(-1.5^2),0,1.5),lty=dashed)
segments(1,0,1,dlnorm(1,0,1.5),lty=dashed)
I don¹t understand the following error message in lme4.
lmList(formula = oaas.bin ~ oaas.prob | subject, data =
inductionPropRemiAll.df, family = binomial)
Error in FUN(X[[1L]], ...) :
unused argument(s) (family = function (link = logit)
lmList(formula = oaas.bin ~ oaas.prob | subject, data =
Paul Smith wrote:
Dear All,
Consider the following code:
pdf(file=figure.pdf,family=URWPalladio)
curve(dlnorm(x,0,1.5),0,10,xlim=c(0,10),ylim=c(0,0.85),axes=F,xlab=,ylab=f)
segments(exp(-1.5^2),0,exp(-1.5^2),dlnorm(exp(-1.5^2),0,1.5),lty=dashed)
segments(1,0,1,dlnorm(1,0,1.5),lty=dashed)
Hi there,
How can I change the xlab and ylab in clusplot instead of
Component 1 and Component 2? It always gives me the following
error message.
Error in plot.default(x1[, 1], x1[, 2], xlim = xlim, ylim = ylim,
xlab = Component 1, :
formal argument ylab matched by multiple actual
I, personally, see tremendous slowdowns in XEmacs responsiveness when
the buffer gets large, probably due to font-lock pretty-printing
stuff. Since ESS can't / doesn't submit the next command until the
fontification is done, things can slow down by a lot.
-G
On Oct 7, 2007, at 4:24PM ,
Well, if the dice are fair, then all rolls are independent. If you want to
roll each dice 100 times, you can do something like
rolls=matrix(sample(1:6,1000,replace=T),ncol=10)
apply(rolls,2,sum)
I'm sure that there must be a more elegant way to do it, though.
Julian
On Mon, 8 Oct 2007,
On Mon, 8 Oct 2007, Peter Dalgaard wrote:
Paul Smith wrote:
Dear All,
Consider the following code:
pdf(file=figure.pdf,family=URWPalladio)
curve(dlnorm(x,0,1.5),0,10,xlim=c(0,10),ylim=c(0,0.85),axes=F,xlab=,ylab=f)
segments(exp(-1.5^2),0,exp(-1.5^2),dlnorm(exp(-1.5^2),0,1.5),lty=dashed)
Hi,
Is there a simple way to suppress the plotting of polygon boundaries with
spplot() ?
# simple list of 12 colors
cols - brewer.pal(12, Paired)
# plot pile of polygons, with 12 classes:
spplot(x, zcol='class2', col.regions=cols, scales=list(draw=T), xlab=Easting
(m), ylab=Northing (m))
...
Hello,
I need to use barplot' graphs, but under the graph I need to put different
things. The structure of this graph must be:
MY GRAPH
--
description 1
--- -
Hello fellow R's,
I do apologize if this is a basic question. I'm doing some GAMs using the mgcv
package, and I am wondering what is the most appropriate way to determine how
much of the variability in the dependent variable is explained by each term in
the model. The information provided by
On 08/10/2007 5:42 PM, Alberto Monteiro wrote:
What is the simplest (namely: minimum number of libraries or conflicts)
way to fill a polygon with a pattern?
For example, suppose I have (in a graphic file, like a jpeg) the
drawing of an X. Then I fill a polygon (like a triangle) with
this
graph, RBGL and Rgraphviz, all available at www.bioconductor.org
Dieter Best wrote:
Hello there,
I am using the igraph package to build graphs from my data. If I plot a
graph though, it's not easy for me to see what's going on. Does anybody know
how to rearrange a graph to get a plot
On 08/10/2007 8:27 PM, Dieter Best wrote:
Hello there,
I am using the igraph package to build graphs from my data. If I plot a
graph though, it's not easy for me to see what's going on. Does anybody know
how to rearrange a graph to get a plot without too many crossing lines? Maybe
Hi there,
Is there an existing package in R that does simple linear regression
with linear constraints on the parameters? Here is the set up:
y_i = \sum_{k = 1}^K \beta_k x_k + \epsilon_i
where
\sum_{k = 1}^K c_k \beta_k = c_0, for some known
Hello there,
I am using the igraph package to build graphs from my data. If I plot
a graph though, it's not easy for me to see what's going on. Does
anybody know how to rearrange a graph to get a plot without too many
crossing lines? Maybe other packages?
Edge-crossing minimization
On 9/10/2007, at 12:04 PM, H. Paul Benton wrote:
Hello all,
I'm having a spot of trouble. I have made a very nice distance
matrix from some comparison calculations. However, the matrix is
3096 x
3096, so it's relatively large. Currently I'm using the svn package as
it seems to work
(Before starting: I'm a total R noob so please bear with me in case of
any error or faux pas).
Hi,
For a small project, I'm writing a few simple R functions and calling
them from python (using RPy). I'm sharing the code with a couple of
friends, using a subversion server.
Now, I want something
73 matches
Mail list logo