Displaying 20 results from an estimated 30000 matches similar to: "Processing dates and generating sequences of dates"
2009 Apr 08
2
sourced plot commands not working
I have source a script running with no errors that ends in these lines:
==============
for (i in 2:3) win.graph()
dev.set(2)
levelplot(avg ~ procs * size, rrt, drape=T, colorkey=T,main="ops/sec",scales=list(x=list(tick.number=15),y=list(log=10)))
dev.set(3)
levelplot(avg ~ procs * size, ort, drape=T, colorkey=T,main="ops/sec",scales=list(x=list(tick.number=15),y=list(log=10)))
2005 Apr 06
1
axis.Date problem, bug(?)
Dear List,
I have the following problem with axis.Date, here is an artificial example:
dates <- scan(what = "character")
"25/03/2000" "26/03/2000" "27/03/2000" "28/03/2000" "29/03/2000"
"30/03/2000" "31/03/2000" "01/04/2000" "02/04/2000" "03/04/2000"
"04/04/2000"
2009 Feb 18
2
Counting/processing a character vector
Dear List,
I have a data set stored in the following format:
> head(dat, n = 10)
id sppcode abundance
1 10307 10000000 1
2 10307 16220602 2
3 10307 20000000 5
4 10307 20110000 2
5 10307 24000000 1
6 10307 40210000 83
7 10307 40210102 45
8 10307 45140000 1
9 10307 45630000 1
10 10307 45630600 41
>
2006 Sep 13
1
forcing levelplot to use relative cuts (ie cuts for each panel)
Dear guRus,
I'm having trouble producing a levelplot with relative cuts for each
panel (my data has large differences in scales, so I want to use
quantiles for each panel).
My attempts to change the 'at' argument in panel.levelplot function
have not met with success.
Below is a toy example.
xy <- expand.grid(x = 1:3, y = 1:3)
aaa <- rbind(cbind(xy, z = 1:9, site =
2005 Aug 03
1
deparse(substitute(x)) and S3 methods
Dear List,
I have the following function:
coca <- function(x, ...)
{
if(is.null(class(x))) class(x) <- data.class(x)
UseMethod("coca", x)
}
and a default method
coca.default <- function(x, y, method = c("predictive", "symmetric"),
reg.method = c("simpls", "eigen"), weights =
NULL,
2008 Feb 01
2
bug using matplot (PR#10676)
Full_Name: Anne CORI
Version: 2.6.1
OS: windows
Submission from: (NULL) (134.157.220.19)
let A be a mtrix with n lines and p columns, p>36 ;
matplot(A) will only draw the plot of the first 36 columns of A.
This is due to a bug in the definition of pch in the function :
pch <- c(paste(c(1:9, 0)), letters)[1:k]
should be replaced by
pch <- c(paste(c(1:9, 0)), letters)
I hope this
2009 May 09
1
Improve aggregate.default ...?
Hi,
I find it a bit annoying that aggregate.default forces the returned
object to loose the 'name' of the variable aggregated, replacing it with
'x'.
A brief example:
> dat <- data.frame(A = runif(100), B = rnorm(100),
+ Group = gl(4, 25))
> with(dat, aggregate(A, by = list(Group = Group), FUN = mean))
Group x
1 1 0.6523228
2 2
2006 May 20
1
intervals from cut() as numerics?
Hi,
Given some example data:
dat <- seq(4, 7, by = 0.05)
x <- sample(dat, 30)
y <- sample(dat, 30)
error <- x - y
I have broken the rage of x into 10 groups and I can calculate the bias
(mean(error)) for each of these 10 groups:
groups <- cut(x, breaks = 10)
max.bias <- aggregate(error, list(group = groups), mean)
max.bias
group x
1 (4,4.3] -0.7750000
2
2009 Aug 08
2
Problem using model.frame with argument subset in own function
Dear List,
I am writing a formula method for a function in a package I maintain. I
want the method to return a data.frame that potentially only contains
some of the variables in 'data', as specified by the formula.
The problem I am having is in writing the function and wrapping it
around model.frame. Consider the following data frame:
dat <- data.frame(A = runif(10), B = runif(10), C
2008 Jan 23
6
Two-way non-parametric ANOVA?
We need a two-way non-parametric ANOVA in order to analysis properly some
ecological data, do you know any reference in R? or how to do it?
Thank you very much
All the best
diana
--
View this message in context: http://www.nabble.com/Two-way-non-parametric-ANOVA--tp15039308p15039308.html
Sent from the R help mailing list archive at Nabble.com.
2007 Mar 25
1
controlling panel.width and panel.height in viewports
Dear all,
I'm trying to get a series of lattice levelplots to appear in
viewports in a particular way but struggling to exert fine control
over their appearence. There are two conditions: (a) I only want the
levelplot to appear (I don't want axes, colour key, etc) in the
viewport and (b) I want the levelplot to expand to the maximum
allowable space in the viewport while observing
2009 Aug 28
1
Plotmath, sweave and lattice graphics interaction problem
Dear List,
I have hit this problem with using a plotmath expression in an axis
label on a lattice plot I'm including in a Sweave document. The actual
document is far too long and boring (unless you are interested in the
hydrochemistry of upland lakes) to include here, but the following
minimal example reproduces the problem; basically, the PDF produced by
Sweave has missing characters in the
2007 Oct 31
3
thicker axis in levelplot
Dear R-help community,
I need to find out how to make the black axis line around my plot thicker in
levelplot, I cannot find the correct command in ?levelplot or ?par - or if it is
there I cannot get it to work - any help would be more that appreciated!
Here's an example script - I would want the code for making the axis bordering
the plot thicker:
x<- seq(pi/4, 5*pi,length=100)
2008 Jan 16
1
Non linear regression with 2 explanatory variables
Hello!
I want to do a non-linear regression with 2 explanatory variables
(something like : length ~ a * time * exp( b* temperature)), having a
data set (length, time, temperature). Which function could I use (I
tried nls but I think it doesn't work)
Thanks a lot!
Janice
2008 Feb 07
1
how to connect S-Plus to Matlab?
Hi all,
I am playing around with the S-Plus ... and I am wondering how to
connect it back and forth with Matlab?
For example, how do I call S-Plus from within Matlab and how do I call
Matlab from within S-Plus?
How do I transfer data back and forth?
Thanks a lot
2008 Feb 07
2
How to calculate normality of the residuals from a test in R?
En innebygd og tegnsett-uspesifisert tekst ble skilt ut...
Navn: ikke tilgjengelig
Nettadresse: https://stat.ethz.ch/pipermail/r-help/attachments/20080207/891f1e80/attachment.pl
2005 Apr 29
2
Automating plot labelling in custom function in lapply() ?
Dear List,
Consider the following example:
dat <- data.frame(var1 = rnorm(100), var2 = rnorm(100),
var3 = rnorm(100), var4 = rnorm(100))
oldpar <- par(mfrow = c(2,2), no.readonly = TRUE)
invisible(lapply(dat,
function(x) {
plot(density(x),
main = deparse(substitute(x))) }
)
)
2008 Jun 21
2
Generating groupings of ordered observations
Dear List,
I have a problem I'm finding it difficult to make headway with.
Say I have 6 ordered observations, and I want to find all combinations
of splitting these 6 ordered observations in g groups, where g = 1, ...,
6. Groups can only be formed by adjacent observations, so observations 1
and 4 can't be in a group on their own, only if 1,2,3&4 are all in the
group.
For example,
2010 Jan 19
5
OT: Software for specific visualisation of data...ideas?
Dear List,
A student in the Department where I work would like to produce a graphic
similar to this one:
http://image.guardian.co.uk/sys-files/Guardian/documents/2009/09/16/Public_spending_160909.pdf
Does anyone know if the figure in the pdf can be generated in a specific
software application for example? Any suggestions would be most
gratefully received by the student concerned.
Many thanks,
2008 Aug 07
2
panel.arrows problem in custom panel function
Dear List,
I am writing a custom panel function and xyplot method to plot the
results of a procrustes analysis from the vegan package.
I am having trouble getting the call to panel.arrows to work as I wish
when conditioning. The attached file contains the function definitions
for the xyplot method and the custom panel and prepanel functions I am
using. This example, using data and functions from