Search Archives
Search tips
from:Name
Search by author name, e.g. from:Duncan Murdoch
"exact phrase"
Match an exact phrase
word1 word2
Match messages containing both words
Date range
Use the date pickers to filter results to a time period
Use the list dropdown to narrow results to a specific mailing list. Combine from: with other terms to filter by author and content.
methods(plot) --- Edna Bell <edna.bell01 at gmail.com> wrote: > Hi R Gurus: > > I know that "plot" has extra things like plot.ts, plot.lm > > How would i find out all of them, please? > > Thanks, > Edna > > ______________________________________________ > R-help at stat...
Dear List, Sorry, this is very simple but I can't seem to find any information regarding line widths of plotting symbols in the lattice package. For instance, in traditional graphics: > plot(1:10,lwd=3) > points(10:1,lwd...
Hi Amna, I believe you are looking for these functions ?hclust [with method = "ward"] ?kmeans Best regards, Stephen --- amna khan <amnakhan493 at gmail.com> wrote: > Hi Sir > > How to perform cluster analysis using Ward's method and K- means > clustering...
?cumsum --- zahid khan <solo_qau at yahoo.com> wrote: > I want to calculate the commulative sum of any numeric vector with the > following command but this following command does not work "comsum" > My question is , how we can calculate the...
Hello, I wonder if anyone has used the Compose() function in the 'roxygen' package. I find its behavior a bit surprising: > f <- function(x) x + 1 > g <- function(x) x * 2 > f(g(2)) [1] 5 > Compose(f,g)(2...
There was a previous post about this also: http://tolstoy.newcastle.edu.au/R/e2/help/07/05/17475.html I was able to use bitmap(,type="pdfwrite") on Ubuntu Linux but had trouble getting it to work on Windows...
plot(x=1:10,y=1:10,xlim=c(0,5),ylim=c(6,10)) a lot of the arguments descriptions for plot() are contained in ?par --- Patrick Wang <pwang at berkeley.edu> wrote: > Hi, > > How to specify the start...
I think you can set legend=FALSE in barplot() and add your own legend, in which you have a lot more control: barplot(#your arguments#,legend=FALSE) legend(x="topleft",cex=yourCex) etc. --- Janet <jerosenb at fas.harvard.edu> wrote...
Not pretty, but you could possibly try: # first map map(#arguments#) xylim = par("usr") # second map out = map(#arguments#, plot=FALSE) par(xaxs="i",yaxs="i") plot.window(xlim=xylim[1:2],ylim=xylim[3:4]) polygon(out) --- Takatsugu Kobayashi...
I think you're looking for parse(text=paste(letters[1:3], collapse="+")) --- Jarrod Hadfield <j.hadfield at shef.ac.uk> wrote: > Hi Everyone, > > I would simply like to coerce a character string into an expression: > something like: > > as.expression...
Hello everyone, I was wondering if someone could tell me what happens when you use na.omit in the gls() function in library(nlme) when you assume a correlation structure for the errors: gls(Y ~ X1 + X2 + X3, data=sample...
Hello all, I was trying to plot a stereographic projection (centered around Bering Strait) using map() but am having to manually trim the polygons: ## choose limits xlim <- c(110,290); ylim <- c(40,90) ## plot - doesn't look right map...
try grep(paste("^",b[2],"$",sep=""),a) your version will match "b2": > grep("^b[2]$",c("b","b2","b3")) [1] 2 --- Shao <xshining at gmail.com> wrote: > Hi,everyone. > > I have a problem when using the grep. > for example: > a...
Hi, Either of the following should work (I assume there are 28 elements in your list): fdata <- cbind(as.matrix(as.data.frame(filtered)), myregime) fdata <- cbind("colnames<-"(matrix(unlist(filtered),ncol=28), names(filtered)), myregime) --- livia <yn19832 at msn...
This is a useful reference on the tryCatch() function: http://www1.maths.lth.se/help/R/ExceptionHandlingInR/ I think something like this should work: xml <- tryCatch(xmlTreeParse(xmlTxt, useInternal=TRUE), error=function(err) xmlMalFormed()) ----- Original Message ---- From: ppatel3026 <pratik.patel...
I think you need predict(mod,newdate) instead of predict(y,newdate) --- "Maja Schr?ter" <maja.schroeter at gmx.de> wrote: > Hello everybody, > > I'm trying to predict a linear regression model but it does not work. > > My Model: y...
how about this? m1 <- matrix(rep(1:3,each=5),ncol=3) m2 <- matrix(1:15,ncol=3) array(apply(m1,2,function(x,m) m-x,m2),dim=c(dim(m2),ncol(m1))) ----- Original Message ---- From: Daren Tan <daren76...
What's wrong with lattice? Here's an alternative: library(ggplot2) ggplot(data=data.frame(x,y,grps=factor(grps)), mapping=aes(x=x,y=y,colour=grps)) + # define data geom_identity() + # points geom_smooth(method="lm") # regression line --- Ben...
Hello, I am trying to switch to R from S-PLUS 6.1, and one problem I am having is using R for manipulation of calendar-based time-series. In S-PLUS, I commonly use the functions timeSequence(), timeDate(), and...
?try or ?tryCatch http://www.maths.lth.se/help/R/ExceptionHandlingInR/ for example... tryCatch(lme(Y ~ X1*X2, random = ~1|subj, Model[i]), error=function(err) return(0)) (you can do something with 'err' or just return 0 as above...
Can't find what you're looking for? Try searching with Google .