Displaying 20 results from an estimated 4000 matches similar to: "plotting"
2006 Oct 25
3
simplification of code using stamp?
Hi
I have the following code which I would like to simplify. Id does linear
regressions and returns the r-squares, and the coefficients.
It runs slow, as it is doing the regressions for each - is it possible
to get the values in a dataframe which looks as follow:
expert | xx | seeds | r.squared | slope | intercept
Thanks in advance,
Rainer
library(reshape)
rsqs <- as.data.frame(
2007 Feb 13
1
RE2: Suddenly "Subscript out of bounds"
If you tell me how to update R itself automatically, I will go for your
advice.
I am not aware of any method to do it...
Bye
Rick
"ONKELINX,
Thierry"
2007 Feb 12
3
Linking R with Microsoft SQL Server / Client
Hello
My colleagues and I have recently established a large database (40 tables
each with greater than 15 variables) in Microsoft's SQL Server 2000.
Currently we are accessing this database via SQL client running an Windows
XP. Our objectives are many fold including running SQL applications,
outputting results to ARC/INFO IMS, production of summarizing tables -
graphs and web interfaces for
2007 Apr 25
1
program avail. for simulating spatial patterns?
Hi all,
I am wondering if there is a function available in R for simulating
spatial distribution of objects (plants in this case) in order to
simulate sampling of a population . Specifically, I would like to be
able to change the spatial correlation of individuals. I don't want
to reinvent the wheel if it already exists.
Thanks,
Wade
2007 Jan 03
2
understanding integer divide (%/%)
I am confused about why the following occurs:
> version
_
platform i386-pc-mingw32
arch i386
os mingw32
system i386, mingw32
status
major 2
minor 4.0
2006 Nov 10
2
Simplifying Sweave graphics
Een ingesloten tekst met niet-gespecificeerde tekenset is
van het bericht gescrubt ...
Naam: niet beschikbaar
Url: https://stat.ethz.ch/pipermail/r-help/attachments/20061110/9afb0083/attachment.pl
2007 Jun 04
2
Abstract plot
I want to make a plot, but instead of showing _numerical_ values,
I would like to show _symbolic_ values.
For example, I want to plot a function y = a x + b, where
x varies between Xmin and Xmax. I would like the plot
to show, in the x-axis, the strings Xmin and Xmax, instead
of their numeric values. Is it possible?
Alberto Monteiro
2007 Apr 25
1
Help with saptial analysis (cluster)
Hi R-users
I'm a beginner with R and statistics, so I need some help to start my data
analysis. I've been reading some docs and tutorials on R and cluster analysis.
I've got a large dataset (102000 points) with values of longitude, latitude and
temperature and want to see if I can find groups (clusters).
Following some tutorials I can look for principal components but get an error
2006 Dec 05
1
error: too many open devices
Hello all--
I've been using 1.13 (v1915) on my Mac pretty intensly for about a
month, but today when I tried to generate a plot I recieved this
message:
Error in quartz(width=9) : too many open devices
I was caught by surprise, because I only had the R console open at the
time. I checked to be sure, by clicking "Window" at the top bar, and R
console was the only window open. I
2007 Feb 21
1
Trying to get an apply to work with a list in applying names to tables
I am trying to use apply and a list to supply names
to a set of tables I want to generate. Below is an
example that I hope mimics the larger original
problem.
EXAMPLE
aa <- c( 2,2,1,1,2)
bb <- c(5,6,6,7,4)
aan <- c("yes", "no")
bbn <- c("a", "b", "c", "d")
mynames <- c("abby", "billy")
mylist <-
2007 Feb 14
2
Is this a correct forum to discuss basic R problem?
Hi
Sorry if this is a wrong post in the forum. Please suggest if this is a
correct forum to discuss R related basic problem.
I wanted to perform the following task by using R:
e.g.
input data.frame
x y
============
a 10
b 20
a 10
a 10
b 15
b 15
b 20
In o/p i need
x
2007 Dec 03
3
ggplot2: Choosing colours
Dear useRs,
I'm trying to specify the colour of a factor with ggplot2. The example
below gets me close to what I want, but it's missing a legend.
Any ideas?
Thanks,
Thierry
library(ggplot2)
dataset <- data.frame(x = rnorm(40), y = runif(40), z = gl(4, 10, labels
= LETTERS[1:4]))
ggplot(data = dataset, aes(x = x, y = y, group = z)) + geom_point(colour
= c("red",
2007 Jun 03
2
getting t.test to work with apply()
Hi, I'm interested in using apply() with t.test() on a data.frame.
Specifically, I'd like to use apply() to do the following:
t.test(raw.sample[1,alive],raw.sample[1,dead])
t.test(raw.sample[2,alive],raw.sample[2,dead])
t.test(raw.sample[3,alive],raw.sample[3,dead])
etc.
I tried the following,
apply(raw.sample,1,function(x) t.test(raw.sample[,alive],raw.sample[,dead]))
but it gives
2007 Jan 09
3
dimensions of a all objects
Why will the following command not work
sapply(objects(),dim)
What does it say about the objects list? What does it say about the dim
command?
Likewise, the following also does not work
all<-ls()
for (f in all) print(dim(f))
--
Farrel Buchinsky
[[alternative HTML version deleted]]
2007 Feb 07
2
Finding not-matching rows in tables
I have these two dataframes in which 'id' is the key field
> tabella
id nome
1 1 PIEMONTE
2 2 VALLED'AOSTA
3 3
LOMBARDIA
4 4 TRENTINO
5 5 VENETO
6 6 FRIULI
AND
> tab
id nome
1 1 PIEMONTE
2 2 VALLED'AOSTA
3 3 LOMBARDIA
4 4 TRENTINO
5 25 CAMPANIA
6 28
LAZIO
Is there any
2007 Jan 24
3
Conversion of column matrix into a vector without duplicates
Hi R,
I have a matrix A,
A=
[,1] [,2]
[1,] a u
[2,] b v
[3,] c x
[4,] d x
[5,] e x
I want to put the 2nd column of this matrix in a vector without
duplicates. i.e., my vector v should be (u, v, x), whose length is 3.
Can anybody help me on this?
Thanks in advance
Shubha.
[[alternative HTML version deleted]]
2006 Nov 23
2
t.test()
Hi
I have a vector x of length n. I am interested in x[1]
being different from the other observations (ie x[-1]).
My null hypothesis is that x[1]
is drawn from a Gaussian distribution of the same
mean as observations x[-1], which are assumed
to be iid Gaussian. The (unknown) variance
of x[1] is assumed to be the same as the
variance of x[-1].
This should be an unpaired t-test.
But
2007 May 22
2
R-help with apply and ccf
Dear R gurus,
I would like to use the ccf function on two matrices that are each 196000 x
12. Ideally, I want to be able to go row by row for the two matrices using
apply for the ccf function and get one 196000 X 1 array output. The apply
function though wants only one array, no? Basically, is there a way to use
apply when there are two arrays in order to do something like correlation on
a row
2007 Feb 13
5
Fatigued R
Hi R,
Please solve my problem...........
I am extracting Bloomberg data from R, in a loop. R is getting fatigued
by doing this process and gives some errors. I introduced sleep
function. Doing this sometimes I get the results and sometimes not. I
even noticed that if I give complete rest for R (don't open R window)
for 1 day and then run my code with the sleep function, then the
2007 Jan 04
3
export many plots to one file
Dear useRs,
I have a few hundred plots that I'd like to export to one document.
pdf() isn't an option, because the file created is prohibitively huge
(due to scatter plots with many points). So I have to use png()
instead, but then I end up with a lot of files (would prefer just
one).
1. Is there a way to have pdf() embed images, instead of vector
instructions? (What would have to be