[R] scales argument in lattice plots

2005-02-18 Thread David Parkhurst
I need to use the scales argument, but I don't fully understand the description there, about how to treat the x and y axes differently. I'd much appreciate any help. Please reply directly, as I don't subscribe to the list. Thank you. David Parkhurst ___

[R] Black and white lattice plots

2005-02-09 Thread David Parkhurst
How can I get lattice plots (with xyplot, etc.) to be produced in black and white, rather than in color? I’m using R 2.0.1 under windows XP. (I'm not subscribed to the list, so would appreciate direct replies.) Thanks for any help. David Park

[R] graphsheet substitute in R?

2005-01-26 Thread David Parkhurst
iewed one at a time. Is there any way to do the equivalent in R? (Using splom from lattice makes the graphs too small.) Thanks for any help. (I am not subscribed to the news mailing list, so I would appreciate direct replies.) David Parkhurst __ R-help@

[R] Converting yr mo da to dates

2005-01-26 Thread David Parkhurst
I'm using R 2.0.1 in windows XP (and am not currently subscribed to this mailing list). I have a USGS dataset, a text file with fixed width fields, that includes dates as 6-digit integers in the form yrmoda. I could either read them that way, or with yr, mo, and da as separate integers. In ei

Re: [R] How to use "identify" --- Summary

2005-01-24 Thread David Parkhurst
I asked why my call to identify wasn’t working. Thanks to Petr Pikal, Tom Mulholland, Gavin Simpson, and Duncan Murdoch for explaining that I had misinterpreted the ?identify help page, and that I needed to feed both the x and y vectors in the plot to identify(). It’s working fine for me now.

[R] How to use "identify"

2005-01-24 Thread David Parkhurst
I can't get identify to work, using R 2.0.1 under windows xp pro, service pack 2. Here's what I enter, and the result: > plot((our.frame2$c1),(our.frame2$c9)) # Produces desired plot > identify(our.frame2$c1) # Plot comes to forefront, so I select a point warning: no point with 0.25 inches nume

[R] font size in console

2005-01-19 Thread David Parkhurst
o ask the folks who installed the program on the server I use in classes to set it (assuming that can be done)? Thanks for any help. David Parkhurst __ R-help@stat.math.ethz.ch mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the

[R] graphics device problems

2004-02-29 Thread David Parkhurst
I'm using R 1.8.0 under windows XP. I can't get certain of the graphics devices set up. For example, when I copy this line directly from the "postscript" help screen, I get the error messages that follow it: > postscript("foo.ps") Error in PS(file, old$paper, old$family, old$encoding, old$bg,

[R] rfImpute (for randomForest) crashed

2003-08-26 Thread David Parkhurst
In trying to execute this line in R (Version 1.7.1 (2003-06-16), under windows XP pro), with the randomForest library (about two weeks old) loaded, the program crashed: bost4rf <- rfImpute(TargetDensity~.,data=bost4rf0) Specifically, an XP dialog box popped up, saying “R for windows GUI front-en

[R] How to reinstall rpart?

2003-08-15 Thread David Parkhurst
After entering “library(rpart)”, I tried to plot an existing rpart tree, and got this error message: Error: couldn't find function "plot.rpart". However, “?plot.rpart” does bring up the help for the function. The same things occur for text.rpart, although print(my.tree) does work. So, I tried to

[R] problem with download.packages

2003-08-14 Thread David Parkhurst
R Version 1.7.0, under windows XP pro The help page for update.packages says that { `download.packages' takes a list of package names and a destination directory, downloads the newest versions of the package sources and saves them in `destdir'. If the list of available packages is not given as ar

Re: [R] na.action in randomForest --- Summary

2003-08-05 Thread David Parkhurst
A few days ago I asked whether there were options other than na.action=na.fail for the R port of Breiman’s randomForest; the function’s help page did not say anything about other options. I have since discovered that a pdf document called “The randomForest Package” and made available by Andy Lia

[R] na.action in randomForest

2003-08-03 Thread David Parkhurst
The help page for randomForest shows na.action=na.fail as a parameter, and does not describe other possibilities for na.action. I have a regression problem, with about 1000 rows in my data frame, and with an NA in occasional predictor variables, in about 5% of rows. I would like to have all rows

[R] Summary: length() "ain't misbehavin'" after all

2003-03-14 Thread David Parkhurst
I asked why length(byyr$cnd95[byyr$cnd95=="tr"]) was counting NA's as well as "tr"s. Thanks to Brian Ripley, Uwe Ligges, Ott Toomet, Marc Schwartz, and Thomas Lumley for their help. Two solutions were to replace my call with length[byyr$cnd95 %in% "tr"] or with sum(byyr$cnd95 == "tr", na.rm=TRUE)

[R] Fw: length() misbehaving?: More

2003-03-14 Thread David Parkhurst
With the problem below, I've discoved that n95trt<-length(byyr$cnd95[byyr$cnd95=="tr"&!is.na(byyr$cnd95)]) does give me the correct count for the number of "tr" entries. (The same behavior occurs for the "c" level of the cnd95 factor.) It appears that byyr$cnd95=="tr" is finding both "tr" AND NA

[R] length() misbehaving?

2003-03-14 Thread David Parkhurst
I'm having a weird problem with length(), in R1.6.1 under windows2000. I have a dataframe called byyr, with ten columns, the first of which is named cnd95. summary(byyr) shows that byyr$cnd95 contains the factor level "tr" 66 times. Also, when I enter byyr$cnd95 at the command line, I can count 6

[R] trellis.datasets help

2003-02-23 Thread David Parkhurst
I've looked every way I can think of for help on trellis.datasets, but nothing comes up for me. Please help me find information on what is included, and how to get at those data. Thanks. Dave Parkhurst __ [EMAIL PROTECTED] mailing list http://www.stat

[R] read.table(file="clipboard",...) for R?

2003-01-20 Thread David Parkhurst
I use read.table(file="clipboard",...) a lot in s-plus (under windows 2000), but it does not seem to work in R (and is not in the help screen for read.table). Am I missing something? Would this ability be hard to add? Thanks. Dave Parkhurst __ [EMAI

[R] parameter estimates from nls

2003-01-08 Thread David Parkhurst
How can I get at the estimated parameter values from a non-linear model fitted by nls in R, so as to plot the fitted curve? If I have f.t <- nls(f~a*exp(b*t), ...) then type names(f.t), all that shows up is m for model, data, and call. I don't see how to get at a and b, other than to print them.